Slide 1

Slide 1 text

OpenLayers ɹͰ࢝ΊΔ஍ਤͷૢ࡞ ͱগ͠࠲ඪͷ͓͸ͳ͠ ϑϩϯτ΋͘΋͘ձ#11 2018/07/21 (౔) ໼࡚ ༞थ @zucky_zakizaki

Slide 2

Slide 2 text

![VDLZ@[BLJ[BLJ ɾ໼࡚ɹ༞थʢYazaki Yukiʣ ɾΤϯδχΞ 9೥໨ ɹC#(.net) ͱ WindowsΞϓϦଟΊ ɾWebܥ ໿൒೥ ɾ࠷ۙ͸ RailsʴVue.js ͕޷͖ ɹ͋ͱ Xamarin͋ͨΓ ɾQiitaॻ͍ͯ·͢ ɹhttps://qiita.com/zaki_zaki ɹ

Slide 3

Slide 3 text

࿩͢͜ͱ • OpenLayers ͬͯͳΜͧ΍ • σϞ • ࠲ඪͷ͓͸ͳ͠ ɹɹ஍ਤܥϥΠϒϥϦΛѻ͏্Ͱ ɹɹֶΜͰ͓͍ͨ΄͏͕Α͍͜ͱ

Slide 4

Slide 4 text

HomePage http://openlayers.org/ GitHub https://github.com/openlayers/openlayers ͜ͷ΁ΜΛͬ͘͟Γ࿩͍͖ͯ͠·͢

Slide 5

Slide 5 text

OpenLayers ͱ͸ • ஍ਤ༻JSϥΠϒϥϦ • ঎༻ΞϓϦ഑෍Մೳ (2-clause BSD) • ແྉʴ੍ݶͳ͠ • खܰ • ΧελϚΠζ͕๛෋ ͕͜͜ϙΠϯτ!! ֓ཁ zϙΠϯτ!!zͷ෦෼Λ ॱ൪ʹ࿩͍͖͍ͯͨ͠ͱࢥ͍·͢ɻ

Slide 6

Slide 6 text

ແྉʴ੍ݶͳ͠ • ແྉʴ੍ݶͳ͠ • खܰ • ΧελϚΠζ͕๛෋

Slide 7

Slide 7 text

• 1೔/25,000 ϦΫΤετ ɹ ͔Β… • 1ϲ݄/໿28,000ϦΫΤετ ɹɹʹมߋ(2018/07/16͔Βࢪߦ) ɹɹৄ͘͠͸ ↓↓ ɹɹhttps://cloud.google.com/maps-platform/pricing/sheet/ (PPHMF.BQTʢແྉ࿮ʣͷ৔߹ • ແྉʴ੍ݶͳ͠ • खܰ • ΧελϚΠζ͕๛෋ 0QFO-BZFSTͷ৔߹ • OpenStreetMapʢOSMʣ • ஍ཧӃ஍ਤ • etc… 0QFO-BZFSTͳΒແྉ ˞ ͷ஍ਤར༻͕Մೳʂʂ ˞ΫϨδοτهࡌ౳ͷن໿͸͋Γ·͢ɻ

Slide 8

Slide 8 text

OpenStreetMap(OSM) ͱ͸ • ΦʔϓϯϥΠηϯεͷ஍ਤ • ొ࿥΍ฤू͸Ұൠͷํ͕ߦͳ͍ͬͯΔ • λΠϧʢ஍ਤʣαʔόͷࣗ࡞͕Մೳ ͜ΜͳΠϕϯτ΋ɾɾɾ IUUQTPQFOTUSFFUNBQKQ

Slide 9

Slide 9 text

खܰ • ແྉʴ੍ݶͳ͠ • खܰ • ΧελϚΠζ͕๛෋

Slide 10

Slide 10 text

• ແྉʴ੍ݶͳ͠ • खܰ • ΧελϚΠζ͕๛෋ var olmap = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: new ol.source.OSM() }) ], }); ಡΈࠐΈ EJWཁૉ Ϛοϓੜ੒ ʴ 04.ಡΈࠐΈ αϯϓϧίʔυCZDPEFQFO IUUQTDPEFQFOJP[VDLZ@[BLJ[BLJQFOE,0..9

Slide 11

Slide 11 text

ΧελϚΠζ͕๛෋ • ແྉʴ੍ݶͳ͠ • खܰ • ΧελϚΠζ͕๛෋ σϞͰઆ໌͠·͢ɻ αϯϓϧίʔυCZDPEFQFO IUUQTDPEFQFOJP[VDLZ@[BLJ[BLJQFO0X8N:,

Slide 12

Slide 12 text

࠲ඪͷ͓͸ͳ͠ ஍ਤܥϥΠϒϥϦΛѻ͏্Ͱ ֶΜͰ͓͍ͨ΄͏͕Α͍͜ͱɻ

Slide 13

Slide 13 text

࠲ඪʹ͍ͭͯ ܦҢ౓ [ौ୩] 139.701636, 35.658034 WebϝϧΧτϧ [ौ୩] 15551514.982507259,4253668.826571383 զʑͱ0QFO-BZFSTͰѻ͏࠲ඪͷछྨ͕ҟͳΔɻ ˞0QFO-BZFSTҎ֎ (PPHMF.BQT౳ ΋΄΅ಉ༷ɻ ม׵͕ඞཁ!!

Slide 14

Slide 14 text

WebϝϧΧτϧ ͬͯʁ ͬ͘͟Γઆ໌͢Δͱɾɾɾ • Google͕ࡦఆͨ͠࠲ඪ • ੈք஍ਤΛXY͔࣠ͭਖ਼ํܗͰදͤΔ • ๺ۃͱೆۃ͋ͨΓ͸ඳըର৅֎

Slide 15

Slide 15 text

ϓϩάϥϛϯά OpenLayers ྫʣத৺࠲ඪΛઃఆ͍ͨ͠ let lnglat = ol.proj.fromLonLat([ܦ౓, Ң౓]); olView.setCenter(lnglat); let center = olView.getCenter(); let lnglat = ol.proj.transform(center, 'EPSG:3857', 'EPSG:4326');

Slide 16

Slide 16 text

·ͱΊ • OpenLayers ͱ͸ • ʮແྉʴ੍ݶͳ͠ɺखܰɺΧελϚΠζ๛෋ʯ • ࠲ඪ • ܦҢ౓Ͱ͸ͳ͘WebϝϧΧτϧͳͷͰ஫ҙͯ͠Ͷ

Slide 17

Slide 17 text

OpenLayers ɹͰ࢝ΊΔ஍ਤͷૢ࡞ ͱগ͠࠲ඪͷ͓͸ͳ͠ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠