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 @@ ...@@ -383,10 +383,16 @@
}); });
}) })
.push(function (map_gadget) { .push(function (map_gadget) {
return map_gadget.render({ var map_options = {
zoom : 40, zoom : 40,
marker_list : marker_list 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 @@ ...@@ -161,11 +161,13 @@
</record> </record>
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -209,17 +211,20 @@ ...@@ -209,17 +211,20 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
<none/> </value>
</tuple> </item>
</dictionary>
</pickle> </pickle>
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -242,7 +247,7 @@ ...@@ -242,7 +247,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>982.32498.51617.41386</string> </value> <value> <string>993.49407.7079.26129</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +265,7 @@ ...@@ -260,7 +265,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1584099133.89</float> <float>1630639789.35</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
...@@ -269,17 +274,20 @@ ...@@ -269,17 +274,20 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
<none/> </value>
</tuple> </item>
</dictionary>
</pickle> </pickle>
</record> </record>
<record id="5" aka="AAAAAAAAAAU="> <record id="5" aka="AAAAAAAAAAU=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -327,8 +335,9 @@ ...@@ -327,8 +335,9 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
<none/> </value>
</tuple> </item>
</dictionary>
</pickle> </pickle>
</record> </record>
</ZopeData> </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