Removed table from the place map division because of problem associated with drifting when changing providers. Thank you Serge Noiraud.

svn: r15560
This commit is contained in:
Rob G. Healey 2010-06-12 17:21:23 +00:00
parent 27c21d0a09
commit 570cf9a5df

View File

@ -2363,6 +2363,17 @@ class PlacePage(BasePage):
div#maps { div#maps {
height: 500px; height: 500px;
} }
div#googlev3 {
height: 400px;
width: 500px;
display: none;
border: solid 1px #000;
}
div#openlayers {
height: 400px;
width: 500px;
border: solid 1px #000;
}
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
@ -6584,20 +6595,9 @@ def _create_place_map(placedetail, latitude, longitude):
# section title # section title
placemap += Html("h4", _("Place Map"), inline = True) placemap += Html("h4", _("Place Map"), inline = True)
# begin place map table placemap += Html("div", id = "googlev3", inline = True)
with Html("table", attr = 'border = "0" width = "50%"') as table:
placemap += table
trow = Html("tr") placemap += Html("div", id = "openlayers", inline = True)
table += trow
trow += Html("td", inline = True) + (
Html("div", id = "googlev3", attr = 'style = "height: 400px; width: 500px; display: none"')
)
trow += Html("td", inline = True) + (
Html("div", id = "openlayers", attr = 'style = "height: 400px; width: 500px;"')
)
placemap += Html("a", _("change provider"), attr = 'onclick = "changeprovider();"', placemap += Html("a", _("change provider"), attr = 'onclick = "changeprovider();"',
href = "#", inline = True) href = "#", inline = True)