Thread: Map Logic
View Single Post
  #10 (permalink)  
Old October 11th, 2010, 06:10 PM
flyinhawaiian flyinhawaiian is offline
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

Add this to your Site.css When I took this out. I got the same warped out map as you did. So this has got to be it.

Site.css
Code:
#theMap
{
    position: relative; 
    width: 580px; 
    border: solid 1px #bbd1ec;
}

top of Map.ascx
Code:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NerdDinner.Models.Dinner>" %>
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2" type="text/javascript"></script>

<div id="theMap" style="width:520px"></div>

Last edited by flyinhawaiian; October 11th, 2010 at 06:14 PM. Reason: Added use of theMap
The Following User Says Thank You to flyinhawaiian For This Useful Post: