function _jsmSetMap(recenterMode, /*JSMapDataSet[]*/mapDataSets, poiPins, replay)
{
    if (!jsmap) { return; }

    /* remove old layers */
    jsmap.JSClearLayers();

    /* draw POI */
    jsvPoiPins = poiPins;
    if (jsvPoiPins && (jsvPoiPins.length > 0)) {
        jsmap.JSDrawPOI(jsvPoiPins);
    }

    /* draw datasets */
    jsvDataSets = mapDataSets;
    if (jsvDataSets) {

        for (var i = 0; i < jsvDataSets.length; i++) {
            var jds = jsvDataSets[i]; // JSMapDataSet

            /* draw the route line first */
            if (jds.routePoints && (jds.routePoints.length >= 2) && (jds.routeColor != ROUTE_COLOR_NONE)) {
                jsmap.JSDrawRoute(jds.routePoints, jds.routeColor);
            }

            /* draw the pushpins */
            if (jds.pushPins && (jds.pushPins.length > 0)) {
                var rcm = ((i + 1) == jsvDataSets.length)? recenterMode : RECENTER_NONE;
                jsmap.JSDrawPushpins(jds.pushPins, jsmRecenterZoomMode(rcm), replay);
            }

            /* only one dataset if 'replay' active */
            if (replay > 0) {
                break;
            }

        }
    }

}
/**
*** Sets the points/attributes on the current map
**/
Sets the points/attributes on the current map
Sets the points / attributes on the current map
function _jsmSetMap(recenterMode, mapDataSets, poiPins, replay)
{
    if (!jsmap) { return; }
    jsmap.JSClearLayers();
    jsvPoiPins = poiPins;
    if (jsvPoiPins && (jsvPoiPins.length > 0)) {
        jsmap.JSDrawPOI(jsvPoiPins);
    }
    jsvDataSets = mapDataSets;
    if (jsvDataSets) {
        for (var i = 0; i < jsvDataSets.length; i++) {
            var jds = jsvDataSets[i]; 
            if (jds.routePoints && (jds.routePoints.length >= 2) && (jds.routeColor != ROUTE_COLOR_NONE)) {
                jsmap.JSDrawRoute(jds.routePoints, jds.routeColor);
            }
            if (jds.pushPins && (jds.pushPins.length > 0)) {
                var rcm = ((i + 1) == jsvDataSets.length)? recenterMode : RECENTER_NONE;
                jsmap.JSDrawPushpins(jds.pushPins, jsmRecenterZoomMode(rcm), replay);
            }
            if (replay > 0) {
                break;
            }
        }
    }
}
function _jsmSetMap ( recenterMode , mapDataSets , poiPins , replay ) { if ( ! jsmap ) { return ; } jsmap . JSClearLayers ( ) ; jsvPoiPins = poiPins ; if ( jsvPoiPins && ( jsvPoiPins . length > 0 ) ) { jsmap . JSDrawPOI ( jsvPoiPins ) ; } jsvDataSets = mapDataSets ; if ( jsvDataSets ) { for ( var i = 0 ; i < jsvDataSets . length ; i ++ ) { var jds = jsvDataSets [ i ] ; if ( jds . routePoints && ( jds . routePoints . length >= 2 ) && ( jds . routeColor != ROUTE_COLOR_NONE ) ) { jsmap . JSDrawRoute ( jds . routePoints , jds . routeColor ) ; } if ( jds . pushPins && ( jds . pushPins . length > 0 ) ) { var rcm = ( ( i + 1 ) == jsvDataSets . length ) ? recenterMode : RECENTER_NONE ; jsmap . JSDrawPushpins ( jds . pushPins , jsmRecenterZoomMode ( rcm ) , replay ) ; } if ( replay > 0 ) { break ; } } } }
Sets the points/attributes on the current map
Sets the points / attributes on the current map
/*JSMapDataSet[]*/ /* remove old layers */ /* draw POI */ /* draw datasets */ // JSMapDataSet /* draw the route line first */ /* draw the pushpins */ /* only one dataset if 'replay' active */