百度地图api 的InfoWindow的尺寸不能太小 50

我想设置InfoWindow的尺寸为10×10,可是好像没用,它始终保持100×50.谁给个解决方案?感谢!... 我想设置InfoWindow的尺寸为10×10,可是好像没用,它始终保持100×50.

谁给个解决方案?感谢!
展开
 我来答
liuweigyh
2011-11-10 · TA获得超过301个赞
知道小有建树答主
回答量:218
采纳率:0%
帮助的人:158万
展开全部
Package com.esri.ags.controls
Class public class InfoWindow
Inheritance InfoWindow InfoContainer mx.core.Container

InfoWindow is used to display custom content on the map or the attributes of a graphic based on its infoWindowRenderer property.

Table 1: Examples of infoWindows

Standard InfoWindow (see sample)
Styled InfoWindow (see Concepts)
Styled InfoWindow (see sample)

See also

com.esri.ags.Map.infoWindow
Live sample - Using infoWindow on rollover
Live sample - Show Geoprocessing result in InfoWindow
Live sample - Show Query result in InfoWindow
Live sample - Show Locator result in InfoWindow

--------------------------------------------------------------------------------

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties
Property Defined by
anchorX : Number
The anchor X location in pixels. InfoContainer
anchorY : Number
The anchor Y location in pixels. InfoContainer
closeButtonVisible : Boolean
Whether to display the close button n the upper right corner. InfoWindow
content : UIComponent
The info window content. InfoWindow
labelVisible : Boolean
Whether to display the label on the upper left corner. InfoWindow

Public Methods
Method Defined by
hide():void
Hide the info window. InfoWindow
show(mapPoint:MapPoint):void
Shows the info window at a specific location. InfoWindow

Events
Event Summary Defined by
close Fires when an InfoWindow is closed. InfoWindow

Styles
Hide Inherited Styles
Show Inherited Styles
Style Description Defined by
borderAlpha Type: Number CSS Inheritance: no
The alpha transparency of the border [added in version 1.3]. InfoContainer
borderColor Type: uint Format: Color CSS Inheritance: no
The color of the border [added in version 1.3]. InfoContainer
borderSkin Type: Class CSS Inheritance: no
The border skin class of the component. InfoContainer
borderThickness Type: Number Format: Length CSS Inheritance: no
Thickness of the border [added in version 1.3], in pixels. InfoContainer
infoOffsetW Type: Number Format: Length CSS Inheritance: no
Number of pixels of the tail base. InfoContainer
infoOffsetX Type: Number Format: Length CSS Inheritance: no
Number of pixels in the horizontal direction to offset the info tail. InfoContainer
infoOffsetY Type: Number Format: Length CSS Inheritance: no
Number of pixels in the vertical direction to offset the info tail. InfoContainer
infoPlacement Type: String CSS Inheritance: no
The placement of the info container relative to its anchor point. InfoContainer
infoPlacementMode Type: String CSS Inheritance: no
The placement mode of the info container when partially off the map. InfoContainer
lowerLeftRadius Type: Number Format: Length CSS Inheritance: no
Radius of the lower left corner. InfoContainer
lowerRightRadius Type: Number Format: Length CSS Inheritance: no
Radius of the lower right corner. InfoContainer
shadowAlpha Type: Number CSS Inheritance: no
The alpha transparency value for the shadow color. InfoContainer
shadowAngle Type: Number CSS Inheritance: no
The angle of the shadow. InfoContainer
shadowColor Type: uint Format: Color CSS Inheritance: yes
The color of the shadow. InfoContainer
shadowDistance Type: Number CSS Inheritance: no
The offset distance for the shadow, in pixels. InfoContainer
upperLeftRadius Type: Number Format: Length CSS Inheritance: no
Radius of the upper left corner. InfoContainer
upperRightRadius Type: Number Format: Length CSS Inheritance: no
Radius of the upper right corner. InfoContainer

Property detail
closeButtonVisible property

closeButtonVisible:Boolean [read-write]
Whether to display the close button n the upper right corner. The default value is true.

Implementation
public function get closeButtonVisible():Boolean
public function set closeButtonVisible(value:Boolean):void

content property

content:UIComponent [read-write]
The info window content. Developers can hide the header label and close button using the labelVisible and closeButtonVisible properties. A component in the content can hide the info window by making content dispatch a CLOSE event.

This property can be used as the source for data binding.

Implementation
public function get content():UIComponent
public function set content(value:UIComponent):void

labelVisible property

labelVisible:Boolean [read-write]
Whether to display the label on the upper left corner. The default value is true.

Implementation
public function get labelVisible():Boolean
public function set labelVisible(value:Boolean):void

Method detail
hide () method

public function hide():void
Hide the info window. This is will also dispatch a Event.CLOSE event.

show () method

public function show(mapPoint:MapPoint):void
Shows the info window at a specific location.

Parameters mapPoint:MapPoint — The location of the info window in map coordinates.

See also

com.esri.ags.controls.infoClasses.InfoPlacement
Event detail
close event

Event object type: flash.events.Event

Fires when an InfoWindow is closed.
本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
AiPPT
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图... 点击进入详情页
本回答由AiPPT提供
图吧小鱼儿
2011-11-16 · TA获得超过344个赞
知道小有建树答主
回答量:367
采纳率:0%
帮助的人:259万
展开全部
是不是最小就是100*50啊?
Mapbar 地图 API 提供的信息窗口支持两种大小级别:标准和放大。标准级别下,信息窗口的宽高为 300*300 像素。放大级别下,Mapbar 地图 API 将把信息窗口尽量放大到填充整个地图,但最大不超过 640*590 像素。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
hhb272
2011-12-06 · TA获得超过122个赞
知道答主
回答量:114
采纳率:0%
帮助的人:74.2万
展开全部
不太明白。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式