Oracle Maps example - Some theme based FOI utility methods


Instructions

This demo shows the following theme based FOI utility methods.

Source code

The JavaScript code for the above map is below.
  var mapview;
  var themebasedfoi;
  
  function showMap() 
  { 
    var baseURL  = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = -122.45;
    var mapCenterLat =  37.7706;
    var mapZoom      =  4;       
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addMapTileLayer(new MVMapTileLayer("mvdemo.demo_map"));   
    mapview.setCenter(mpoint);   
    mapview.setZoomLevel(mapZoom);
    
    themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','mvdemo.THEME_DEMO_COUNTY_POPDENSITY');
    mapview.addThemeBasedFOI(themebasedfoi);
    
    mapview.addNavigationPanel() ;
    mapview.display();
  }
  
  function enableLabels(item)
  {
    
    themebasedfoi.enableLabels(item.checked);
    themebasedfoi.refresh();
    
  }

  function enableInfoWindowForMO(item)
  {
    
    themebasedfoi.enableInfoWindowForMouseOver(item.checked);
    
  }

  function enableImages(item)
  {
    
    themebasedfoi.enableImageRendering(item.checked);
    themebasedfoi.refresh();
    
  }