MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / showRightMenu

Function showRightMenu

examples/js/plottingPanel/PlotMapPanel.js:322–358  ·  view source on GitHub ↗
(type, x, y)

Source from the content-addressed store, hash-verified

320 }
321
322 function showRightMenu(type, x, y){
323 $("#rMenu ul").show();
324 if (type === "root") {
325 $("#createPlottingLayer").show();
326 $("#activeChildPlotLayer").hide();
327 $("#activePlottingLayer").hide();
328 $("#fixSymScale").hide();
329 $("#createChildPlotLayer").hide();
330 $("#setMinVisibleScale").hide();
331 $("#setMaxVisibleScale").hide();
332 $("#clearVisibleScale").hide();
333 } else if(type === "PlottingLayer"){
334 $("#createPlottingLayer").hide();
335 $("#activeChildPlotLayer").hide();
336 $("#activePlottingLayer").show();
337 $("#fixSymScale").show();
338 $("#createChildPlotLayer").show();
339 $("#setMinVisibleScale").show();
340 $("#setMaxVisibleScale").show();
341 $("#clearVisibleScale").show();
342 } else if(type === "ChildPlottingLayer"){
343 $("#createPlottingLayer").hide();
344 $("#activePlottingLayer").hide();
345 $("#fixSymScale").hide();
346 $("#createChildPlotLayer").hide();
347 $("#setMinVisibleScale").hide();
348 $("#setMaxVisibleScale").hide();
349 $("#clearVisibleScale").hide();
350 $("#activeChildPlotLayer").show();
351 }
352
353 y += document.body.scrollTop;
354 x += document.body.scrollLeft;
355 $("#rMenu").css({"top":y+"px", "left":x+"px", "visibility":"visible"});
356
357 $("body").bind("mousedown", onBodyMouseDown);
358 }
359
360 function hideRightMenu(){
361 currentSelectedNode = null;

Callers 2

PlotMapPanel.jsFile · 0.85
zTreeOnRightClickFunction · 0.85

Calls 4

bindMethod · 0.80
$Function · 0.50
showMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected