Google Maps API 进级:在信息窗口GInfoWindow中嵌入Flash动画
在信息窗口GInfoWindow中嵌入Flash动画
注意:这里的OBJECT标签要放入一个指定大小的标签中,以便显示。
示例:
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
var geoPoint= new GLatLng(39.92, 116.46);
map.setCenter(geoPoint, 5);
//创建GMarker对象
var marker = new GMarker(geoPoint);
//在地图上为marker0添加涂层,显示marker0
map.addOverlay(marker);
//添加flash
var flash_html = "<div style=\"width:500px; height:400px\"";
flash_html += "<object width=\"480\" height=\"395\">";
flash_html += " <param name=\"allowScriptAccess\" value=\"sameDomain\">";
flash_html += " <param name=\"movie\" value=\"http://tv.mofile.com/cn/xplayer.swf\">";
flash_html += " <param name=\"FlashVars\" value=\"v=TDL351BF&p=http://cache.mofile.com/tv/static/picture/u14/Disk1/cnc/2007/4/29/TD/L3/TDL351BF.jpg&autoplay=0\">";
flash_html += " <param name=\"wmode\" value=\"transparent\">";
flash_html += " <embed src=\"http://tv.mofile.com/cn/xplayer.swf\" FlashVars=\"v=TDL351BF&p=http://cache.mofile.com/tv/static/picture/u14/Disk1/cnc/2007/4/29/TD/L3/TDL351BF.jpg&autoplay=0\" width=\"480\" height=\"395\" allowScriptAccess=\"sameDomain\" wmode=\"transparent\" type=\"application/x-shockwave-flash\"/>";
flash_html += "</object>";
flash_html += "</div>";
marker.openInfoWindowHtml(flash_html);
}
Google Maps API 进级:在信息窗口GInfoWindow中嵌入Flash动画相关推荐
- Google Maps API 进级: GoogleMaps常用事件及应用思路1
转自:http://hi.baidu.com/xfm_zhr/blog/item/8c1790517e87ea888d54302a.html 1. GoogleMaps常用事件及应用思路 ...
- Google Maps API 进级:通过XML文档加载Gpolyline或者Gpolygon
转自:http://hi.baidu.com/xfm_zhr/blog/item/20e2e6f99c723e5e242df229.html 1. 通过XML文档加载Gpolyline或者 ...
- 使用Google Maps API和google-maps-react进行React Apps
This tutorial aims at integrating the google maps API to your React components and enabling you to d ...
- Google Maps API V3 之绘图库 信息窗口
Google官方教程: Google 地图 API V3 使用入门 Google 地图 API V3 针对移动设备进行开发 Google 地图 API V3 之事件 Google 地图 API V3 ...
- maps-api-v3_利用Google Maps API发挥创意
maps-api-v3 您已经设计了一个闪亮的新网站: 仔细选择颜色,版式和照片,以完美反映公司的品牌形象. 然后您的客户要求您添加地图. 当然,您可以使用地图构建"向导",例如每 ...
- vue中使用google地图(自定义label、信息窗口)
最近公司爱尔兰项目需要使用google地图,项目还是用vue写的,那我就寻思找个vue能用的google地图的插件吧,找了vue2-google-maps,这个插件确实还行,而且github上还有ap ...
- Google Maps API V3 之 图层
图层概述 图层是地图上的对象,包含一个或多个单独项,但可作为一个整体进行操作.图层通常反映了您添加到地图上用于指定公共关联的对象集合.Maps API 会通过以下方法管理图层内对象的显示形式:将图层的 ...
- Google Maps API实例-地图搜索
本文实现google maps API主要的函数库 html: <%@ Page Language="C#" AutoEventWireup="true" ...
- Google Maps API 简易教程(一)
Google Maps API 简易教程(一) 一.API Key 使用Google API,必须要从Google 那里获取一个免费的API 键.获取过程如下: (1)用google账户登陆https ...
最新文章
- MPlayer编译步骤
- 大数据之Linux常用命令
- 京东刘海锋:过去十年架构领域最重要的三个变化
- Excel 操作收藏
- Head First JSP---随笔六
- android栈式存储,线性表数据结构解读(三)栈结构Stack
- 渴望 英语_渴望订阅– RxJava常见问题解答
- Android之查看网络图片和网页HTML
- json取数据怎么取_干货速递丨书名应该怎么取?
- python开发转行渗透测试_月薪45K的大牛用Python开发一款密码攻击测试器!密码形同虚设!...
- 矩池云上matplotlib显示中文乱码
- 目前选择四核处理器移动平台,是最佳时机吗?
- CodeForces - 18A Triangle(数学?)
- 只要一页纸,就能管好所有项目
- mac版的PHP集成环境软件MxSrvs软件
- 华为B610-4E光猫设置的问题
- 绑定薇娅李佳琦,不灵了
- ESC/POS常用打印指令面向对象封装,PHP处理二维码定位,微信小程序蓝牙打印
- 雨听 | 英语学习笔记(二)~单词-day 1
- 华为云 —— 购买与登录弹性云服务器ECS