[mapguide-users] Measure tool and tooltip in Fusion

RenoSun renolionheart at gmail.com
Wed Aug 31 08:27:40 PDT 2016


The solution is as following:

Pragmatically Turn off MapTip?
<http://osgeo-org.1560.x6.nabble.com/Pragmatically-Turn-off-MapTip-td5106147.html>  

Under FusionSF.js
Add following codes under
Fusion.Widget.Measure = OpenLayers.Class(Fusion.Widget, {
    ..........................
    activate: function () {
        this.control.activate();
        this.getMap().message.info(OpenLayers.i18n("measureInProgress"));
        this.resetMeasure();
        OpenLayers.Event.observe(document, "keypress", this.keyHandler);
        this.loadDisplayPanel();
        this.getMap().supressContextMenu(true);

        *//Disable maptip when measring
        Fusion.getWidgetsByType('Maptip')[1].deactivate();*
    },
    .........................
   deactivate: function () {
        OpenLayers.Event.stopObserving(document, 'keypress',
this.keyHandler);
        this.control.deactivate();
        this.control.cancel();
        this.getMap().message.clear();
        this.getMap().supressContextMenu(false);

        *//Enable maptip when measring tool is deactivate
        Fusion.getWidgetsByType('Maptip')[1].activate();*
    },
    .........................




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Measure-tool-and-tooltip-in-Fusion-tp5283159p5283322.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list