Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
OpenLayers CCK
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2010 at 08:45 UTC
Updated:
19 Jul 2010 at 11:20 UTC
I've tried specifying something different from 'Default Map' as format for 'Teaser' and 'Full node' in 'display fields' tab of content type configuration.
Getting NO map in node view mode when doing so.
Comments
Comment #1
strk commentedUhm, _another_ non-default preset works fine, so sounds like a problem with a specific preset.
This specific preset (I called it 'project_view') has been created by _cloning_ the one that works
(called 'project_edit') and adding my own WMS as an overlay (non-active).
Comment #2
strk commentedI've found that 'theme_openlayers_cck_formatter_map' function, defined in includes/openlayers_cck.theme.inc,
is not even called in the non-working preset case.
It is with the preset that works.
Comment #3
strk commented_none_ of the functions in includes/openlayers_cck.theme.inc are called, when the non-working preset is used!
Comment #4
strk commentedI checked DB definition of the two presets (working and non-working) and found them actually equal (the 'data' field).
The name, title and description differ:
Working one:
name: project_edit
title: Project edit
desc: Projects edit
Non-working one:
name: project_view
title: Project view
desc: Projects view
Comment #5
strk commented'drush cc all' fixed this.
Anything we can do from the module to do better (auto-cleaning when troubles detected or print/log an error or the like) ?
Comment #6
pavithran commented@strk : something similar happpened in my case .
The default preset loads only mapnik . Hence i created a preset(pre1) with osmarender and google maps . It was not working and sometimes only showed the default preset .
I created a new preset(pre2) with same layers + more google layers .
Now the old one magically started working while the new one is not working . Added to that this time for the new one nothing is shown . not even the default preset .
This behaviour is only shown in views. Its not shown when the node is edited .
Comment #7
strk commenteddid cleaning the cache work for you ?
Comment #8
zzolo commentedThe cache should be cleared on any update (even without DB changes). This is true of any module. Is this still an actionable ticket?
Comment #9
strk commentedcan be closed for me.
Comment #10
zzolo commented