Focal Point
[CLOSED] How to change default map of ibiMap001 in WebFOCUS enable SWC component

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/965104673

February 21, 2010, 07:38 AM
Qalqili
[CLOSED] How to change default map of ibiMap001 in WebFOCUS enable SWC component
Hi All

any one know how to change the default map of ibiMap001 component of WebFOCUS Enable SWC? i try to develop Dashboard using Flex Builder but i want to set let say italy map insted of US. i already got google API key and the longitude and ltitude from google earth. but i want to set it for ibiMap001 component to change the default map.


I appreiate your Assistance.

Regards
A.Qalqili

This message has been edited. Last edited by: Kerry,


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
February 21, 2010, 10:23 AM
Qalqili
Hi My Frindz

I just Read the Documentation titled "WebFOCUS Enable for Adobe Flex User’s Guide". i have been nivigated to the property of ibiMap001 and i change this properties "defaultMapCenter" i set it to be equal Germany. it supose to work .but in real it is not working.


if any one use it before his advice more than helpfull

Regards
A.Qalqiliano

This message has been edited. Last edited by: Qalqili,


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
March 05, 2010, 09:59 AM
<csssps07>
To clafiry what you're doing, how are you setting/changing the default map setting? Can you provide a snippet of your code?
March 06, 2010, 05:29 AM
Qalqili
Hi CSSSps07

i change that property from Flex builder development tools.

  

<ibi:ibiMap001 x="2" y="2" width="717" initialize="onMapReady[event)" height="482" defaultMapType="satellite" defaultMapCenter="Saudi Arabia,riyadh" enableContinuousZoom="true" enableControlByKeyboard="true" enableDragging="true" enableScrollWheelZoom="true" ibiParent="MAIN02">
<ibi:apiKey>ABQIAAAAoLtyhdhQLbrxEi1pJvvvJRR9xyXwUVkwf9xnNyPhpChWWbBIfxTO9AvzJ-WQs830QH-INygbKvJ-Rw</ibi:apiKey>
			<ibi:markerSets>
			< ![CDATA[{ibiMarkersParent: MAIN02;ibiMarkerColor: #8F8FBC;ibiLatColumn: LTITUDE;ibiLongColumn: LONGITUDE;ibiToolTip: CITY;}]]>
			</ibi:markerSets>
	</ibi:ibiMap001>





WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
March 10, 2010, 03:33 PM
<csssps07>
Hey there,

Your code looks okay for the most part. The only thing I'm unsure of is what the initialize function is doing, i.e. whether it's resetting some properties. So couple of suggestions:

1. Take out the initialize and run the app again.

2. Try setting (reducing) the zoom level.

Also, an obvious question: is Germany part of your data?

Here's a sample that's working for me:

		<ibi:ibiMap001 x="10" y="49" id="MAP1" ibiMapFilters="{['Combo0','Combo1']}"  defaultMapCenter="Iraq" defaultMapZoom="5" enableContinuousZoom="true" enableControlByKeyboard="true" enableDragging="true" enableScrollWheelZoom="true">
			<ibi:apiKey>xxxxx</ibi:apiKey>
			<ibi:markerSets>< ![CDATA[
				{
				ibiMarkersParent:DETAIL01;
				ibiMarkerColor: #8F8FBC;
				ibiLatColumn: LATITUDE;
				ibiLongColumn: LONGITUDE;
				ibiToolTip: DSP_NAME;
				ibiMinZoom: 1;
				ibiMaxZoom: 6;
				ibiInfoWindowColumns: DSP_NAME AS Provider,DSP_WEBSITE AS Website,DSP_RATING AS Rating;
				ibiInfoWindowSize: 450,100;
				ibiMarkerCenter: true;
				}
				]]></ibi:markerSets>

This message has been edited. Last edited by: Kerry,
March 10, 2010, 03:35 PM
<csssps07>
This part got left out in the last post:


March 10, 2010, 03:37 PM
<csssps07>
Posting again; Hmm, it must be something in the syntax that's stripping the code:

<ibi:ibiMap001 x="10" y="49" id="MAP1" 
defaultMapCenter="Iraq" defaultMapZoom="5" enableContinuousZoom="true" enableControlByKeyboard="true" enableDragging="true" enableScrollWheelZoom="true">

This message has been edited. Last edited by: Kerry,