2



Similar documents
コンピュータサイエンス 4. ウェブプログラミング


Microsoft PowerPoint - WMClass_2008July11.ppt

携帯電話でGoogle Mapsを使う

<!DOCTYPE html> 何かの宣言。必要。

1 Google

0序文‐1章.indd

JavaScriptプログラミング入門

コンピュータサイエンス 1. ウェブの基本

What 色 々な Web サービスを 提 供 している 会 社 です 会 社 ) 私 ) ぜひ 名 前 を 覚 えていってくださ

「V-Sido CONNECT RC」 Raspberry Pi 2との連係方法

untitled

WebGIS WebGIS(Web Geographic Information System) Web WebGIS Web WebGIS API(Application Program Interface) Web Google GoogleMaps API WebGISJSGI i

アスラテック株式会社 会社案内

Microsoft PowerPoint - A07回目②.pptx

to-r

endo.PDF


2

橡点検記録(集約).PDF

07_経営論集2010 小松先生.indd

Microsoft PowerPoint _2b-DOM.pptx

/ 0/0/ : 実 結 果 HTMLファイルを 表 します 下 図 の 画 が 表 されます " 出 し"の 部 分 をクリックすると"コンテンツですよ "の 字 が 表 されます もう 度 " 出 し"をクリックすると"コンテンツですよ "の 字 が 非 表 になります 折 りたたみパネルの 基

textbook.indd


特別プログラム

★表紙-背幅5.5mm/表紙

広報あつぎ-1月15日号-1面12.indd

学内広報 No.1224


›¼’à”v“lŠÍ1−ª

8 浜根知恵(p191‐203)204白/p191‐203

SBI損保の自動車保険 重要事項説明書


表紙(背幅8.5mm)/背幅8.5mm


2

_ZEI-1022_fiÁŁÊ−é›æ-’‘Ä


1 鵜澤幸弘(p7‐26)/性同一障害 p7‐26

untitled

A4_元

本文/A6180A

150220_通し


60周年記念 記念誌/扉・扉裏・中扉・資料扉・名簿扉

本文/YAY180B


研究紀要 第22号 (分割版 その7)

S \1.E4



本文(縦)/YAZ149T

m_sotsuron

HTMLとメタデータ

コンテンツメディアプログラミング実習2

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

A B C A B C Ctrl (S) 5 A B C 11.2: (F) (A) ( OK ) 3 (E) ( ) (E)

改訂版 :基本的な文字化の原則(Basic Transcription System for Japanese: BTSJ)

関西大学インフォメーションテクノロジーセンター年報 第3号(2012)

report for biz 顧客分析レポートAPI ver 1.00 仕様書

宅建練馬表478号1_4ol [更新済み].eps

株式会社ウォールニクス 会社案内

アクセシビリティガイドライン骨子

カンペキな初心者のための、Adobe® AIR™の基礎の基礎

InfoPros13_digest.key

- 1 -

%

ID010-2

2


広報しもつけp01ol


本文(B5×40)0614三校責了.indd

920P-1



ONPRESS190

Microsoft PowerPoint ppt


新築_PDF用

表紙a


表紙.PDF

untitled

AFASパンフ表.ai

.....w...j...[.X55..

cover_jinzai_21

fukushi-yotsukaido113

untitled

URL :





電力技術研究所

untitled

農林金融2015年5月号

untitled

Microsoft Word - class_specification_guide_v60.doc

Transcription:

1

2

VICS G***** 3

4

5

http://****.yahooapis.jp/****?query=*** WebAPI HTTP 6

7

8

9

10

11

12

13

14

15

16

17

18

19

YOLP AppID hacku_test 20

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script charset="utf-8" src="http://js.api.olp.yahooapis.jp/openlocalplatform/v1/jsapi?appid=[ appid]"></script> <script> window.onload = function() { // }; </script> </head> <body> </body> </html> AppID http://developer.yahoo.co.jp/weba pi/map/openlocalplatform/v1/js/ URL yjdn jsapi <div id="map" style="width:800px; height:500px;"></div> URL http://u.yhacks.jp/common/tutorial/yolp/template.html https://github.com/yahoojpyolp/yolp-jsapi-samples/tree/master/webapp-template-2014-hacku 21

window.onload = function() { var latlng = new Y.LatLng(35,135); // var map = new Y.Map("map"); map.drawmap(latlng); }; div id 22

window.onload = function() { var latlng = new Y.LatLng(35.0297536,135.7607545); // var map = new Y.Map("map"); map.drawmap(latlng,15); // map.setconfigure('scrollwheelzoom', true); }; Tips 1. Y! 2. 3. URL http://maps.loco.yahoo.co.jp/maps?p= &lat=35.0297536&lon=135.7607545& API API 23

window.onload = function() { var latlng = new Y.LatLng(35.0297536,135.7607545); // var map = new Y.Map("map"); map.drawmap(latlng,15); // map.setconfigure('scrollwheelzoom', true); // map.addcontrol(new Y.LayerSetControl()); map.addcontrol(new Y.SliderZoomControlVertical()); map.addcontrol(new Y.ScaleControl()); map.addcontrol(new Y.CenterMarkControl()); }; 24

window.onload = function() { var latlng = new Y.LatLng(35.0297536,135.7607545); // var map = new Y.Map("map"); map.drawmap(latlng,15); // var marker = new Y.Marker(new Y.LatLng(35.02986144707795,135.75935694118283)); // marker.bindinfowindow( <u> </u><br /> 2 "); // map.addfeature(marker); }; 25

window.onload = function() { var latlng = new Y.LatLng(35.0297536,135.7607545); // var map = new Y.Map("map"); map.drawmap(latlng,15); // var style = new Y.Style("ff0000", 15, 0.75, null, "arrow"); var latlngs = [ new Y.LatLng(35.0297536,135.7607545), new Y.LatLng(35.02986144707795,135.75935694118283) ]; // var line = new Y.Polyline(latlngs,{"strokeStyle":style}); // map.addfeature(line); }; 26

window.onload = function() { var latlng = new Y.LatLng(35.0297536,135.7607545); // var map = new Y.Map("map"); map.drawmap(latlng,15); // map.bind("click",function(p) { alert(" "+p.tostring()); }); map.bind("moveend",function() { var center = map.getcenter(); alert(" "+center.tostring()); }); }; 27

window.onload = function() { var latlng = new Y.LatLng(35.0297536,135.7607545); var map = new Y.Map("map"); map.drawmap(latlng,15); map.bind("moveend",function() { var center = map.getcenter(); var cid = "d115e2a62c8f28cb03a493dc407fa03f,8cfa8ed3d825ba896fa8d 7cffd28cd67"; var searchoption = { "lat": center.lat(), "lon": center.lng(), "dist": 5, "sort": "dist" }; var localsearch = new Y.LocalSearch(); localsearch.search("", cid, searchoption, function(ydf) { map.clearfeatures(); map.addfeatures(ydf.features); } ); }); }; 1. API 2. ID cid 3. ID API http://olp.yahoo.co.jp/cassette.html https://github.com/yahoojapan/yolp-jsapisamples/blob/master/webapp-cassettesearch/cassette.html 28

window.onload = function() { var latlng = new Y.LatLng(35.0297536,135.7607545); var map = new Y.Map("map"); map.drawmap(latlng,15); // var rlayer = new Y.RouteSearchLayer(); map.addlayer(rlayer); map.bind("moveend",function() { var center = map.getcenter(); var cid = "d115e2a62c8f28cb03a493dc407fa03f,8cfa8ed3d825ba896fa8d7cffd28cd67"; var searchoption = { "lat": center.lat(), "lon": center.lng(), "dist": 5, "sort": "dist" }; var localsearch = new Y.LocalSearch(); localsearch.search("", cid, searchoption, function(ydf) { map.clearfeatures(); map.addfeatures(ydf.features); // var nearestfeature = ydf.features[0]; rlayer.execute( [center,nearestfeature.getlatlng()], //, {"usecar":false} ); }); }); }; 29

CodeZine YOLP - THE END - 30

VICS G***** 32