Commit d486d0ab authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Display something on the Map by default

  Even if the Map had no markers, display some location meaningful instead a point into the occean
parent 675912f7
......@@ -383,10 +383,16 @@
});
})
.push(function (map_gadget) {
return map_gadget.render({
var map_options = {
zoom : 40,
marker_list : marker_list
});
};
if (marker_list.length === 0) {
map_options.latitude = 48.858370;
map_options.longitude = 2.294481;
map_options.zoom = 0;
}
return map_gadget.render(map_options);
});
});
});
......
......@@ -161,11 +161,13 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<tuple>
<none/>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
......@@ -209,17 +211,20 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<tuple>
<none/>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
......@@ -242,7 +247,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>982.32498.51617.41386</string> </value>
<value> <string>993.49407.7079.26129</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +265,7 @@
</tuple>
<state>
<tuple>
<float>1584099133.89</float>
<float>1630639789.35</float>
<string>UTC</string>
</tuple>
</state>
......@@ -269,17 +274,20 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<tuple>
<none/>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
......@@ -327,8 +335,9 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment