trying to edit a preexisting marker, you can submit the changes, and they appear normally. The problem appears when you try to change the description or the tittle. If you submit a new one everyting seems ok, you can see the modified text.

But if you try to edit again, you´ll see that the text saved was THE FIRST ONE, not the previous...

CommentFileSizeAuthor
#5 cck_map.js_.txt16.74 KBalexmoreno
#5 cck_map.module_.txt25.27 KBalexmoreno

Comments

alexmoreno’s picture

Priority: Critical » Minor
Status: Active » Closed (fixed)

was my own modification, sorry

alexmoreno’s picture

Priority: Minor » Critical
Status: Closed (fixed) » Active

no, yet present. Sorry for all the changes but i was testing it was not my fault modding the module.

alexmoreno’s picture

Status: Active » Closed (fixed)

ok, i´ve finally found the problem. With internet explorer 6.0 the module is expecting a lot of problems, and with firefox, sometimes seems that the cache likes to play with our nervous :-S.

alexmoreno’s picture

Status: Closed (fixed) » Active

really crazy. It definitively doesn´t saves the updates, as i described this morning. If you try to edit the map and change, for example, a title, it shows the previous version, not the one which is showing on view tab. Crazy?

alexmoreno’s picture

StatusFileSize
new25.27 KB
new16.74 KB

ok, i promise that i´ve finally find the bug :-D

in cck_map.js we have this on lines :

marker.image = image;
marker.title = title;
marker.description = title;
this.attachMarkerListeners(marker);

the problem is in

marker.description = title;

that must be

marker.description = description;

i was confused because i was cleaning the source with very similar title and descriptions :-S.

I´ve attached my code which also allows to select different image icons. To do this simply modify the line 574:

$icon_files = array("marker.png" => "marcador rojo","dd-start.png" => "inicio","dd-end.png" => "fin","house.png" => "house","hotel.png" => "hotel", "picnic.png" => "picnic", "airport.png" => "airport", "entertain.png" => "diversion", "building.png" => "edificio");

with your own uploaded icons on cck_map/icons directory

Regards

alexmoreno’s picture

Status: Active » Closed (fixed)
beeradb’s picture

Thanks for all your work on getting to the bottom of that. I'll try to create a patch of your work and sync it with the production release as soon as I can.

You mentioned in an earlier post being interested in helping some with the development of the module. I'm definitely looking for any help I can get with module upkeep and feature expansion. There are a lot of things i'd lke to do with this module, and just don't have much time to devote to it currently.

Thanks,
Brad

alexmoreno’s picture

im very interested in this module for various projects and, in fact, i´ve made some improvements during the last days and i´d like to contribute them to the community. I also have a lot of work but in part of my work we use drupal so we´d like to share the things which we´ve done to the community.

wating for instructions ;-).

selflearner’s picture

Just a quick question to urwen, do you know if your cck_map.js patch works in enabling the marker description to show. I tried it and it did not in my site, so just wondering. Marker description is something I want to have, and for some reason, it is not showing up at all as brought up in the above discussion, even after I tried to change the line 'marker.description=description. If you have any suggestions, please share them.
Thanks.

alexmoreno’s picture

it´s really crazy. After expending lot of time i finally decided to use nodemap and location in other webs. Sorry.

dariogcode’s picture

First, my apologize for my english.

I found the error.

In line 63 of cck_map.module

if ($form_id == '_content_admin_field') {
  /*  */ 
    if ($form['field_type']['#value'] == 'map_location') {
      unset($form['widget']['default_value_fieldset']);
      if (!strlen($form['widget']['description']['#value']))
        $form['widget']['description']['#value'] = "Click the map to place markers. Once placed, you can drag markers around to change their location, you may also click to edit or remove them.";
    }
  }

In $form['widget']['description']['#value'] it should be $form['widget']['description']['#default_value'].

It is working for me.