説明
ドラッグ時のカーソル形状を指定するには GDraggableObject. setDraggableCursor()、 GDraggableObject. setDraggingCursor() を使います。
続きは書籍で、どうぞ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Sample</title>
<style type="text/css"><!--
#nagano {
border:1px solid black;
font-weight:900;
color:red;
background-color:#ffc;
}
--></style>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAasAJryKxWJnBFVJa487d9hTHGAxTVT7IRADYa-JdYz7xQ8IQZBSthgDZdggYpQHsmm6WYtHstQFfLA" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
window.onload = function() {
var aObj = document.getElementById("nagano");
var map = new GMap2(document.getElementById("gmap"));
map.setCenter(new GLatLng(37, 138), 6);
GDraggableObject.setDraggableCursor("move");
GDraggableObject.setDraggingCursor("pointer");
dragObj = new GDraggableObject(aObj);
}
//]]>
</script>
</head>
<body>
<div id="gmap" style="width: 500px; height: 400px"></div>
<div id="nagano">←長野県</div>
</body>
</html>