Moved location of 'Drop Markers' button to bottom of the map instead of top.
svn: r18501
This commit is contained in:
parent
a7619cbd2e
commit
c6e6383466
@ -4989,9 +4989,9 @@ class IndividualPage(BasePage):
|
|||||||
|
|
||||||
function initialize() {
|
function initialize() {
|
||||||
var mapOptions = {
|
var mapOptions = {
|
||||||
scrollwheel: false,
|
scrollwheel: true,
|
||||||
scaleControl: false,
|
scaleControl: true,
|
||||||
backgroundColor: '#FFFFFF',
|
backgroundColor: '#000000',
|
||||||
zoom: %d,
|
zoom: %d,
|
||||||
center: centre,
|
center: centre,
|
||||||
mapTypeId: google.maps.MapTypeId.ROADMAP
|
mapTypeId: google.maps.MapTypeId.ROADMAP
|
||||||
@ -5032,15 +5032,14 @@ class IndividualPage(BasePage):
|
|||||||
"take you to that page’s page.")
|
"take you to that page’s page.")
|
||||||
mapbackground += Html("p", msg, id = "description")
|
mapbackground += Html("p", msg, id = "description")
|
||||||
|
|
||||||
# if Google and Markers are selected, then add "Drop Markers" button?
|
|
||||||
if (self.mapservice == "Google" and self.googleopts == "Markers"):
|
|
||||||
button_ = Html("button", _("Drop Markers"), id ="drop", onclick ="drop()", inline =True)
|
|
||||||
mapbackground += button_
|
|
||||||
|
|
||||||
# here is where the map is held in the CSS/ Page
|
# here is where the map is held in the CSS/ Page
|
||||||
with Html("div", id ="map_canvas", inline =True) as canvas:
|
with Html("div", id ="map_canvas", inline =True) as canvas:
|
||||||
mapbackground += canvas
|
mapbackground += canvas
|
||||||
|
|
||||||
|
# if Google and Markers are selected, then add "Drop Markers" button?
|
||||||
|
if (self.mapservice == "Google" and self.googleopts == "Markers"):
|
||||||
|
mapbackground += Html("button", _("Drop Markers"), id ="drop", onclick ="drop()", inline =True)
|
||||||
|
|
||||||
if self.mapservice == "OpenStreetMap":
|
if self.mapservice == "OpenStreetMap":
|
||||||
with Html("script", type ="text/javascript") as jsc:
|
with Html("script", type ="text/javascript") as jsc:
|
||||||
mapbackground += jsc
|
mapbackground += jsc
|
||||||
|
@ -39,8 +39,7 @@ button#drop {
|
|||||||
color: #FFF;
|
color: #FFF;
|
||||||
font: bold .8em sans-serif;
|
font: bold .8em sans-serif;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-top: 0px;
|
margin-top: 10px;
|
||||||
margin-bottom: 10px;
|
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
border: solid 2px green;
|
border: solid 4px #00029D;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user