Montag, 7. Mai 2007

Home-Link in Navigation Panel

Rarely used but very efficient is the HOME-Link integrated in the Navigation Panel:
<--- in the middle of the 8 arrows you'll fine an additional mark: the HOME-Link

It helps to go back to the HOME settings defined in the respective function

mapview.setHomeMap(mpoint, nZoom);


How to achive this ?

See the example code as below:


var mapview;


function showMap()
{
var baseURL = "http://"+document.location.host+"/mapviewer";
var mapCenterLon = -122.45;
var mapCenterLat = 37.7706;
var mapZoom = 3;
var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));

mapview.setCenter(mpoint);

mapview.setZoomLevel(mapZoom);


mapview.setHomeMap(mpoint, 2);

mapview.addNavigationPanel("WEST");


mapview.addCopyRightNote("©2006 powered by oracle(tm)");

mapview.addScaleBar();


addThemeBasedFOI();

mapview.display();


}

Donnerstag, 3. Mai 2007

Basemap and 5 FOI Layers - Styles by Mapbuilder



Without "programming" and with just little expertise in the "Mapbuilder" and in "Oracle Maps" this is possible:
1 Basemap mit counties and sub-districts
5 FOI layers:
- customers with sales
- counties "Freistaaten" (lightgreen-transparent),
- other counties (green, transparent),
- Hansestadt Hamburg (yellow)
- APEX Selectlist: customer sales styles: variable points and bars


Cooming soon: "How To Tipps".....

Freitag, 20. April 2007

FOI's and Performance

ZOOM LEVELS for FOI's !!!

when experiencing performance issues consider this:

The more FOIs you display, the higher the overhead in the client browser.
The solution is to limit the number of FOIs to be displayed based on the zoom level.
Check out methods like:

* foiLayer.setMinVisibleZoomLevel(2);

This sets the minimum zoom level at which FOIs become visible. Above that level, the FOIs are not shown at all.

* foiLayer.setMaxWholeImageLevel(3);

This sets the level up to which FOIs are rendered as a
single image, so consuming less resources in the browser. After that level, they are rendered as individual images.

* foiLayer.setMinClickableZoomLevel(5);

This sets the level from which the FOIs are clickabke. Above that level, they are visible but not clickable. Check also

* setQueryWindowMultiplier(1)

By setting this to 1, Mapviewer will only return those FOIs that strictly fit in the current map window. The default it 2, which means that Mapviewer returns FOIs that fit twice the area.

Thanks to Albert Godfrind for pointing me to this !

An example will follow as soon as I have tested this ! stay tuned !