Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!-- reference -->
<!DOCTYPE html>
<div id="map" style="width:400px; height:300px"></div>
<script type="text/javascript" charset="utf-8" src=""></script>
<script type="text/javascript" charset="utf-8" src="[your-id-goes-here]"></script>
<script type="text/javascript">
window.onload = function(){
var ymap = new Y.Map("map");
ymap.drawMap(new Y.LatLng(35.66572, 139.73100), 17, Y.LayerSetId.NORMAL);
/* ymap.addControl(new Y.LayerSetControl());
ymap.addControl(new Y.ScaleControl());
ymap.addControl(new Y.SliderZoomControlHorizontal()); */
var icon = new Y.Icon('');
var marker = new Y.Marker(new Y.LatLng(35.66572, 139.73100), {title: "東京ミッドタウンっぽい", icon: icon});
marker.bindInfoWindow('<img src=""><br>hogehoge');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.