Jan 02, 2009, 9:01 AM
GMap Api Error
*Hi every one ,i wish all member merry *christmas.
I'm working on GMap but when i add a div for map canvas,map don't *be shown correctly.
I'm sending my code below.Some part of the map was shown but it'll be lost some times.
I'm working on GMap but when i add a div for map canvas,map don't *be shown correctly.
I'm sending my code below.Some part of the map was shown but it'll be lost some times.
<%@ Page Language="C#" AutoEventWireup="true" *CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
** *<title>Isbak 2009</title>
** *
** *<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA-O3c-Om9OcvXMOJXreXHAxQGj0PqsCtxKvarsoS-iqLdqZSKfxS27kJqGZajBjvuzOBLizi931BUow"
** * * *type="text/javascript"></script>
** *<script type="text/javascript">
** * * *function init() {
** * * * * *if (GBrowserIsCompatible()) {
** * * * * * * *var map = new GMap2(document.getElementById("map2"));
** * * * * * * *map.setCenter(new GLatLng(37.4419, -122.1419), 13);
** * * * * * * *map.addControl(new GSmallMapControl());
** * * * * * * *map.addControl(new GOverviewMapControl());
** * * * * *}
** * * * * *else
** * * * * * * *alert('uyumlu degil');
** * * *}
** *</script>
</head>
** *<body onload="init()" onunload="GUnload()">
** * * *<form id="form1" runat="server" style="width:100%;height:100%">
**<ext:ViewPort ID="ViewPort1" runat="server">
** * * * * *<Body>
** * * * * * * *<ext:BorderLayout ID="BorderLayout2" runat="server">
** * * * * * * * * *<North Collapsible="True" Split="True">
** * * * * * * * * * * *<ext:Panel ID="Panel1" runat="server" Height="100" Title="North">
** * * * * * * * * * * *</ext:Panel>
** * * * * * * * * *</North>
** * * * * * * * * *<East Collapsible="true" Split="true">
** * * * * * * * * * * *<ext:Panel ID="Panel2" runat="server" Title="East" Width="175">
** * * * * * * * * * * * * *<Body>
** * * * * * * * * * * * * * * *<ext:FitLayout ID="FitLayout1" runat="server">
** * * * * * * * * * * * * * * * * *<ext:TabPanel ID="TabPanel1" runat="server" ActiveTabIndex="0" Border="false" TabPosition="Bottom"
** * * * * * * * * * * * * * * * * * * *Title="Title">
** * * * * * * * * * * * * * * * * * * *<Tabs>
** * * * * * * * * * * * * * * * * * * * * *<ext:Tab ID="Tab1" runat="server" Title="Tab 1">
** * * * * * * * * * * * * * * * * * * * * *</ext:Tab>
** * * * * * * * * * * * * * * * * * * * * *<ext:Tab ID="Tab2" runat="server" Title="Tab 2">
** * * * * * * * * * * * * * * * * * * * * * * *<Body>
** * * * * * * * * * * * * * * * * * * * * * * *</Body>
** * * * * * * * * * * * * * * * * * * * * *</ext:Tab>
** * * * * * * * * * * * * * * * * * * *</Tabs>
** * * * * * * * * * * * * * * * * *</ext:TabPanel>
** * * * * * * * * * * * * * * *</ext:FitLayout>
** * * * * * * * * * * * * *</Body>
** * * * * * * * * * * *</ext:Panel>
** * * * * * * * * *</East>
** * * * * * * * * *<South Collapsible="true" Split="true">
** * * * * * * * * * * *<ext:Panel ID="Panel7" runat="server" Height="100" Title="South">
** * * * * * * * * * * *</ext:Panel>
** * * * * * * * * *</South>
** * * * * * * * * *<West Collapsible="true" Split="true">
** * * * * * * * * * * *<ext:Panel ID="Panel8" runat="server" Title="West" Width="175">
** * * * * * * * * * * * * *<Body>
** * * * * * * * * * * * * * * *<ext:Accordion ID="Accordion1" runat="server" Animate="true">
** * * * * * * * * * * * * * * * * *<ext:Panel ID="Panel9" runat="server" Border="false" Collapsed="True" Icon="FolderGo"
** * * * * * * * * * * * * * * * * * * *Title="Item 1">
** * * * * * * * * * * * * * * * * * * *<Body>
** * * * * * * * * * * * * * * * * * * *</Body>
** * * * * * * * * * * * * * * * * *</ext:Panel>
** * * * * * * * * * * * * * * * * *<ext:Panel ID="Panel10" runat="server" Border="false" Collapsed="true" Icon="FolderWrench"
** * * * * * * * * * * * * * * * * * * *Title="Item 2">
** * * * * * * * * * * * * * * * * * * *<Body>
** * * * * * * * * * * * * * * * * * * *</Body>
** * * * * * * * * * * * * * * * * *</ext:Panel>
** * * * * * * * * * * * * * * *</ext:Accordion>
** * * * * * * * * * * * * *</Body>
** * * * * * * * * * * *</ext:Panel>
** * * * * * * * * *</West>
** * * * * * * * * *<Center>
** * * * * * * * * * * *<ext:Panel ID="Panel11" runat="server" Title="Center">
** * * * * * * * * * * * * *<Body>
** * * * * * * * * * * * * * * *<ext:FitLayout ID="fitlayout14" runat="server">
** * * * * * * * * * * * * * * * * *<ext:Panel id="pnl1" runat="server" >
** * * * * * * * * * * * * * * * * * * <Body>
** * * * * * * * * * * * * * * * * * * *<div id="map2" style="width:500px;height:500px">
** * * * * * * * * * * * * * * * * * * </Body>
** * * * * * * * * * * * * * * * * *</ext:Panel>
** * * * * * * * * * * * * * * *</ext:FitLayout>
** * * * * * * * * * * * * *</Body>
** * * * * * * * * * * *</ext:Panel>
** * * * * * * * * *</Center>
** * * * * * * *</ext:BorderLayout>
** * * * * *</Body>
** * * *</ext:ViewPort>
*<ext:ScriptManager id="sm1" runat="server"></ext:ScriptManager>
** * * *</form>** * * * * * **
</body>
</html>