Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
Athena
Commits
ad42f2a8
Commit
ad42f2a8
authored
Dec 12, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
39a4bb40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
35 deletions
+47
-35
index.html
public/index.html
+47
-35
No files found.
public/index.html
View file @
ad42f2a8
...
...
@@ -12,24 +12,26 @@
<!-- <script type="text/javascript" src="http://activity.oytour.com/google.js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&language=zh-CN"></script> -->
<!-- <script type="text/javascript" src="https://www.google.cn/maps/api/js?key=AIzaSyC1oB2m5qPIWBo6oV0myQ7h85n8plX5Xls&libraries=geometry&language=zh_CN&callback=__googleMapResourceLoaded"></script> -->
<!-- <script type="text/javascript" src="http://activity.oytour.com/googleMap_New.js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&language=zh-CN"></script> -->
<script
type=
"text/javascript"
>
window
.
google
=
{
maps
:
{}
};
var
_load
=
void
0
,
loadScriptTime
=
(
new
Date
).
getTime
();
Object
.
defineProperty
(
google
.
maps
,
'Load'
,
{
configurable
:
false
,
get
:
function
()
{
return
_load
},
set
:
function
set
(
v
)
{
eval
(
"_load = "
+
v
.
toString
().
replace
(
"maps.google.cn"
,
"www.google.cn"
))
}
});
</script>
<script
type=
"text/javascript"
src=
"http://www.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&libraries=geometry&language=zh_CN"
></script>
<script>
<script
type=
"text/javascript"
>
window
.
google
=
{
maps
:
{}
};
var
_load
=
void
0
,
loadScriptTime
=
(
new
Date
).
getTime
();
Object
.
defineProperty
(
google
.
maps
,
'Load'
,
{
configurable
:
false
,
get
:
function
()
{
return
_load
},
set
:
function
set
(
v
)
{
eval
(
"_load = "
+
v
.
toString
().
replace
(
"maps.google.cn"
,
"www.google.cn"
))
}
});
</script>
<script
type=
"text/javascript"
src=
"http://www.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&libraries=geometry&language=zh_CN"
>
</script>
<script>
(
function
(
$
)
{
var
supportedCSS
,
styles
=
document
.
getElementsByTagName
(
"head"
)[
0
].
style
,
toCheck
=
"transformProperty WebkitTransform OTransform msTransform MozTransform"
.
split
(
" "
);
...
...
@@ -178,7 +180,7 @@
this
.
_vimage
.
style
.
height
=
height
+
"px"
;
this
.
_vimage
.
style
.
width
=
width
+
"px"
;
this
.
_vimage
.
style
.
position
=
"absolute"
;
// FIXES IE PROBLEM - its only rendered if its on absolute position!
"absolute"
;
// FIXES IE PROBLEM - its only rendered if its on absolute position!
this
.
_vimage
.
style
.
top
=
"0px"
;
this
.
_vimage
.
style
.
left
=
"0px"
;
...
...
@@ -188,7 +190,8 @@
this
.
_container
.
style
.
height
=
height
;
this
.
_container
.
style
.
position
=
"absolute"
;
this
.
_container
.
setAttribute
(
'coordsize'
,
width
-
1
+
','
+
(
height
-
1
));
// This -1, -1 trying to fix ugly problem with small displacement on IE
1
));
// This -1, -1 trying to fix ugly problem with small displacement on IE
this
.
_container
.
appendChild
(
this
.
_vimage
);
this
.
_rootObj
.
appendChild
(
this
.
_container
);
...
...
@@ -215,7 +218,7 @@
this
.
_widthAdd
=
_widthMax
-
this
.
_width
;
this
.
_heightAdd
=
_widthMax
-
this
.
_height
;
// widthMax because maxWidth=maxHeight
.
_height
;
// widthMax because maxWidth=maxHeight
this
.
_widthAddHalf
=
this
.
_widthAdd
/
2
;
// used for optimisation
this
.
_heightAddHalf
=
this
.
_heightAdd
/
2
;
// used for optimisation
...
...
@@ -304,12 +307,13 @@
// REMEMBER: all drawings are read from backwards.. so first function is translate, then rotate, then translate, translate..
this
.
_cnv
.
translate
(
this
.
_widthAddHalf
,
this
.
_heightAddHalf
);
// at least center image on screen
.
_heightAddHalf
);
// at least center image on screen
this
.
_cnv
.
translate
(
this
.
_widthHalf
,
this
.
_heightHalf
);
// we move image back to its orginal
.
_heightHalf
);
// we move image back to its orginal
this
.
_cnv
.
rotate
(
angle
);
// rotate image
this
.
_cnv
.
translate
(
-
this
.
_widthHalf
,
-
this
.
_heightHalf
);
// move image to its center, so we can rotate around its center
.
_heightHalf
);
// move image to its center, so we can rotate around its center
this
.
_cnv
.
scale
(
this
.
_aspectW
,
this
.
_aspectH
);
// SCALE - if needed ;)
this
.
_cnv
.
drawImage
(
this
.
_img
,
0
,
0
);
// First - we draw image
}
...
...
@@ -340,8 +344,10 @@
function
inherits
(
childCtor
,
parentCtor
)
{
/** @constructor */
function
tempCtor
()
{};
tempCtor
.
prototype
=
parentCtor
.
prototype
;
childCtor
.
superClass_
=
parentCtor
.
prototype
;
if
(
parentCtor
&&
parentCtor
.
prototype
)
{
tempCtor
.
prototype
=
parentCtor
.
prototype
;
childCtor
.
superClass_
=
parentCtor
.
prototype
;
}
childCtor
.
prototype
=
new
tempCtor
();
/** @override */
childCtor
.
prototype
.
constructor
=
childCtor
;
...
...
@@ -488,7 +494,7 @@
me
.
crossDiv_
.
style
.
display
=
"none"
;
me
.
marker_
.
setZIndex
(
cSavedZIndex
);
cIgnoreClick
=
true
;
// Set flag to ignore the click event reported after a label drag
true
;
// Set flag to ignore the click event reported after a label drag
cDraggingLabel
=
false
;
mEvent
.
latLng
=
me
.
marker_
.
getPosition
();
google
.
maps
.
event
.
trigger
(
me
.
marker_
,
"dragend"
,
mEvent
);
...
...
@@ -523,7 +529,7 @@
cRaiseEnabled
=
me
.
marker_
.
get
(
"raiseOnDrag"
);
cDraggingLabel
=
true
;
me
.
marker_
.
setZIndex
(
1000000
);
// Moves the marker & label to the foreground during a drag
1000000
);
// Moves the marker & label to the foreground during a drag
mEvent
.
latLng
=
me
.
marker_
.
getPosition
();
google
.
maps
.
event
.
trigger
(
me
.
marker_
,
"dragstart"
,
mEvent
);
}
...
...
@@ -774,6 +780,7 @@
}
this
.
eventDiv_
.
style
.
display
=
this
.
labelDiv_
.
style
.
display
;
};
function
MarkerWithLabel
(
opt_options
)
{
opt_options
=
opt_options
||
{};
opt_options
.
labelContent
=
opt_options
.
labelContent
||
""
;
...
...
@@ -803,7 +810,7 @@
opt_options
.
optimized
=
false
;
// Optimized rendering is not supported
this
.
label
=
new
MarkerLabel_
(
this
,
opt_options
.
crossImage
,
opt_options
.
handCursor
);
// Bind the label to the marker
.
handCursor
);
// Bind the label to the marker
// Call the parent constructor. It calls Marker.setValues to initialize, so all
// the new parameters are conveniently saved and can be accessed with get/set.
...
...
@@ -829,14 +836,19 @@
google
.
maps
.
MarkerWithLabel
=
MarkerWithLabel
;
</script>
<script>
document
.
ondragover
=
function
(
e
)
{
e
.
preventDefault
();
};
document
.
ondrop
=
function
(
e
)
{
e
.
preventDefault
();
};
$
(
document
).
on
(
"dragstart"
,
function
(
e
)
{
return
false
;
});
document
.
ondragover
=
function
(
e
)
{
e
.
preventDefault
();
};
document
.
ondrop
=
function
(
e
)
{
e
.
preventDefault
();
};
$
(
document
).
on
(
"dragstart"
,
function
(
e
)
{
return
false
;
});
</script>
<!-- <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> -->
<script
type=
"text/javascript"
src=
"https://webapi.amap.com/maps?v=1.3&key=86f2f611126f36b93cf2ef280300524f&plugin=AMap.CitySearch"
></script>
<script
type=
"text/javascript"
src=
"https://webapi.amap.com/maps?v=1.3&key=86f2f611126f36b93cf2ef280300524f&plugin=AMap.CitySearch"
></script>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
athena
</title>
</head>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment