Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Really Need help with Google Map Problem in IEReally Need help with Google Map Problem in IE
Previous
 
Next
New Post
1/2/2008 4:33 AM
 

I have created a very simple module with just a user control that holds a google map. When I display the page in Firefox, it displays properly, when I display the page in IE 6 or 7, the right side of the google map is just a solid grey color as if the tiles are missing and it cannot be grabbed and moved. It may require a few page refreshes to see this. It also happens when you grab and drag the map. You can see the error here:

http://www.websmithing.com/portal/Personal/GoogleMap/tabid/67/Default.aspx

Here is the entire code:

<%@ Control language="C#" Inherits="ViewGoogleMap" CodeFile="ViewGoogleMap.ascx.cs" AutoEventWireup="true"%>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAQ35Hu3xqOoeD50UMgBW0cBQEt3eA6mol2Np5q6SKw0EDVXpM9hRExX__LZW3RbLXHuLKZlwC0oypOw"
type="text/javascript"></script>

<script type="text/javascript">
function loadMap() {
    var googlemap = document.getElementById('googlemap');
    if (GBrowserIsCompatible()) {
        var map = new GMap2(googlemap);
        map.setCenter(new GLatLng(47.583242, -122.210197), 14);
    }
}
</script>

<div id="googlemap" style="height:275px;width:400px;"></div>
<script type="text/javascript">
    loadMap();
</script>

************************************************************************************************

using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;

    partial class ViewGoogleMap : DotNetNuke.Entities.Modules.PortalModuleBase {
        protected void Page_Load(System.Object sender, System.EventArgs e) {
        }
    }

partial rendering is enabled on the control. I also tried it with partial rendering turned off. Please help, it's crucial that I get this working,

thank you!

Nick

 

 

 

 

 

 
New Post
1/2/2008 5:04 AM
 

Nick -

This will probably be a CSS issue with your skin. Try it with the default skin and check the results, then reapply the skin. The error console in FF is reporting 'Unknown property '_margin'' in your skin which might cause this behaviour in IE.


Steve White
 
New Post
1/2/2008 6:30 AM
 

I tried to revert back to the dafault dnn skin but I'm getting the same error:

http://www.lectricsheep.com/portal/Competitions/tabid/54/Default.aspx

Do you see anything from your end?

Nick

 

 

 
New Post
1/2/2008 7:15 AM
 

for comparison, i created another user control and put it into an aspx page. it's on the same website but its not in the dotnetnuke framework. it appears to be working correctly:

http://www.lectricsheep.com/portal/googlemap2.aspx

nick

 

 

 
New Post
1/2/2008 8:11 AM
Accepted Answer 

Looks like IE isn't finding the correct size of the map when loading the tiles. Try opening the page then resizing the browser window, you'll see that the tiles appear as normal. You could try to trigger map.checkResize() for IE after your map has loaded, but you'll need to make the map variable global so you can access it.


Steve White
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Really Need help with Google Map Problem in IEReally Need help with Google Map Problem in IE


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out