ESRI Developer Summit 2008 - Microsoft Virtual Earth

30
Chris Pendleton Virtual Earth Technical Evangelist Microsoft Corporation

description

ESRI Developer Summit Microsoft Special Interest Group presentation by Chris Pendleton.

Transcript of ESRI Developer Summit 2008 - Microsoft Virtual Earth

Page 1: ESRI Developer Summit 2008 - Microsoft Virtual Earth

Chris PendletonVirtual Earth Technical EvangelistMicrosoft Corporation

Page 2: ESRI Developer Summit 2008 - Microsoft Virtual Earth

•Virtual Earth (AJAX Developer Platform)•MapPoint Web Service (SOAP XML Web Service - Cartographic Maps)•Terra Server (SOAP XML Web Service – Satellite Photography)•Live Search Maps (Consumer Web Site)•World Wide Telescope (Microsoft Research Space Exploration Client)

Page 3: ESRI Developer Summit 2008 - Microsoft Virtual Earth
Page 4: ESRI Developer Summit 2008 - Microsoft Virtual Earth

Web ServerWeb

Server

Devices

Solutions

OnlineLocator

Portals/Yellow Pages

Fleet/Asset

tracking

Travel / Hospitalit

y Planning

Cartographic Data

Local Search

FEATURES Maps Driving Directions Find Address/PlaceOblique PhotographyOrthographic PhotographyBrowser-based 3D

FEATURES Maps Driving Directions Find Address/PlaceOblique PhotographyOrthographic PhotographyBrowser-based 3D

JavaScript

Internet

Virtual Earth Service

CONTENT

Aerial Photography

AJAX/HTTP Requests

Geocoding

Client-Based Communication

Real Estate

Hunting

Routing

Page 5: ESRI Developer Summit 2008 - Microsoft Virtual Earth

•AJAX Interface •Geocoding•Mapping•Driving Directions / Routing•3-D Environment•Data•Toolset

Page 6: ESRI Developer Summit 2008 - Microsoft Virtual Earth

• Maps• Cartographic Maps• Satellite Photography• Orthographic Aerial Photography• Oblique Aerial Photography• Hybrid Maps• Overlay Custom Maps• 74 Countries

Page 7: ESRI Developer Summit 2008 - Microsoft Virtual Earth
Page 8: ESRI Developer Summit 2008 - Microsoft Virtual Earth

• 3-D Environment• Direct-X Browser Plug-in• Immersive Navigation• All Maps Available• Scaled Building Models• Photo-textured Building Models• Elevation Models

Page 9: ESRI Developer Summit 2008 - Microsoft Virtual Earth

• Toolset• Vector Overlays

Pins, Lines, Polygons• Raster Overlays

Quad Keys File Import

GeoRSS, GPX, KML Customization

Navigation, Units, Size Control

Get Coordinates, Spatial Query

Page 10: ESRI Developer Summit 2008 - Microsoft Virtual Earth

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<!-- saved from url=(0014)about:internet -->

<title>Hello World</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>

<script type="text/javascript">

var map = null;

function GetMap()

{

map = new VEMap('myMap');

map.LoadMap();

}

</script>

</head>

<body onload="GetMap();">

<div id='myMap' style="position:relative; width:500; height:500;"></div>

</body>

</html>

Page 11: ESRI Developer Summit 2008 - Microsoft Virtual Earth

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<!-- saved from url=(0014)about:internet -->

<title>Hello World</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>

<script type="text/javascript">

var map = null;

function GetMap()

{

map = new VEMap('myMap');

map.LoadMap();

}

</script>

</head>

<body onload="GetMap();">

<div id='myMap' style="position:relative; width:500; height:500;"></div>

</body>

</html>

Page 12: ESRI Developer Summit 2008 - Microsoft Virtual Earth

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<!-- saved from url=(0014)about:internet -->

<title>Hello World</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>

<script type="text/javascript">

var map = null;

function GetMap()

{

map = new VEMap('myMap');

map.LoadMap();

}

</script>

</head>

<body onload="GetMap();">

<div id='myMap' style="position:relative; width:500; height:500;"></div>

</body>

</html>

Page 13: ESRI Developer Summit 2008 - Microsoft Virtual Earth

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<!-- saved from url=(0014)about:internet -->

<title>Hello World</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>

<script type="text/javascript">

var map = null;

function GetMap()

{

map = new VEMap('myMap');

map.LoadMap();

}

</script>

</head>

<body onload="GetMap();">

<div id='myMap' style="position:relative; width:500; height:500;"></div>

</body>

</html>

Page 14: ESRI Developer Summit 2008 - Microsoft Virtual Earth
Page 15: ESRI Developer Summit 2008 - Microsoft Virtual Earth

function GetTiles()

{

var tileSourceSpec = new VETileSourceSpecification("myTiles", "http://www.maptiles.com/GrandCanyon/%4.png");

tileSourceSpec.NumServers = 1;

tileSourceSpec.MinZoomLevel = 10;

tileSourceSpec.MaxZoomLevel = 18;

tileSourceSpec.Opacity = opacity;

tileSourceSpec.ZIndex = 100;

map.AddTileLayer(tileSourceSpec, true);

}

Page 16: ESRI Developer Summit 2008 - Microsoft Virtual Earth

function GetTiles()

{

var tileSourceSpec = new VETileSourceSpecification("myTiles", "http://www.maptiles.com/GrandCanyon/%4.png");

tileSourceSpec.NumServers = 1;

tileSourceSpec.MinZoomLevel = 10;

tileSourceSpec.MaxZoomLevel = 18;

tileSourceSpec.Opacity = opacity;

tileSourceSpec.ZIndex = 100;

map.AddTileLayer(tileSourceSpec, true);

}

Page 17: ESRI Developer Summit 2008 - Microsoft Virtual Earth

function GetTiles()

{

var tileSourceSpec = new VETileSourceSpecification("myTiles", "http://www.maptiles.com/GrandCanyon/%4.png");

tileSourceSpec.NumServers = 1;

tileSourceSpec.MinZoomLevel = 10;

tileSourceSpec.MaxZoomLevel = 18;

tileSourceSpec.Opacity = opacity;

tileSourceSpec.ZIndex = 100;

map.AddTileLayer(tileSourceSpec, true);

}

Page 18: ESRI Developer Summit 2008 - Microsoft Virtual Earth

function GetTiles()

{

var tileSourceSpec = new VETileSourceSpecification("myTiles", "http://www.maptiles.com/GrandCanyon/%4.png");

tileSourceSpec.NumServers = 1;

tileSourceSpec.MinZoomLevel = 10;

tileSourceSpec.MaxZoomLevel = 18;

tileSourceSpec.Opacity = opacity;

tileSourceSpec.ZIndex = 100;

map.AddTileLayer(tileSourceSpec, true);

}

Page 19: ESRI Developer Summit 2008 - Microsoft Virtual Earth
Page 20: ESRI Developer Summit 2008 - Microsoft Virtual Earth
Page 21: ESRI Developer Summit 2008 - Microsoft Virtual Earth

<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6" type="text/javascript" language="javascript"></script>

<script src="http://serverapi.arcgisonline.com/jsapi/ve/?v=1" type="text/javascript"></script>

<script language="javascript" type="text/javascript" >

var map = null;

var agisve_services = null;

var tileUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer";

Page 22: ESRI Developer Summit 2008 - Microsoft Virtual Earth

<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6" type="text/javascript" language="javascript"></script>

<script src="http://serverapi.arcgisonline.com/jsapi/ve/?v=1" type="text/javascript"></script>

<script language="javascript" type="text/javascript" >

var map = null;

var agisve_services = null;

var tileUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer";

Page 23: ESRI Developer Summit 2008 - Microsoft Virtual Earth

<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6" type="text/javascript" language="javascript"></script>

<script src="http://serverapi.arcgisonline.com/jsapi/ve/?v=1" type="text/javascript"></script>

<script language="javascript" type="text/javascript" >

var map = null;

var agisve_services = null;

var tileUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer";

Page 24: ESRI Developer Summit 2008 - Microsoft Virtual Earth

<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6" type="text/javascript" language="javascript"></script>

<script src="http://serverapi.arcgisonline.com/jsapi/ve/?v=1" type="text/javascript"></script>

<script language="javascript" type="text/javascript" >

var map = null;

var agisve_services = null;

var tileUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer";

Page 25: ESRI Developer Summit 2008 - Microsoft Virtual Earth

function OnPageLoad(){

var centerat = new VELatLong(45.50634690108341, -122.67883300781251);

map = new VEMap('mymap');

map.LoadMap(centerat,15,VEMapStyle.Aerial ,false);

}

function AddMap(){

agisve_services = new ESRI.ArcGIS.VE.ArcGISLayerFactory();

agisve_services.CreateLayer(tileUrl, "Parcels", GetMap);

}

function GetMap(tileSourceSpec, resourceInfo){

tileSourceSpec.Opacity=0.35;

map.AddTileLayer(tileSourceSpec,true);

$get("resultDiv").style.visibility ="hidden";

}

Page 26: ESRI Developer Summit 2008 - Microsoft Virtual Earth

function OnPageLoad(){

var centerat = new VELatLong(45.50634690108341, -122.67883300781251);

map = new VEMap('mymap');

map.LoadMap(centerat,15,VEMapStyle.Aerial ,false);

}

function AddMap(){

agisve_services = new ESRI.ArcGIS.VE.ArcGISLayerFactory();

agisve_services.CreateLayer(tileUrl, "Parcels", GetMap);

}

function GetMap(tileSourceSpec, resourceInfo){

tileSourceSpec.Opacity=0.35;

map.AddTileLayer(tileSourceSpec,true);

$get("resultDiv").style.visibility ="hidden";

}

Page 27: ESRI Developer Summit 2008 - Microsoft Virtual Earth

function OnPageLoad(){

var centerat = new VELatLong(45.50634690108341, -122.67883300781251);

map = new VEMap('mymap');

map.LoadMap(centerat,15,VEMapStyle.Aerial ,false);

}

function AddMap(){

agisve_services = new ESRI.ArcGIS.VE.ArcGISLayerFactory();

agisve_services.CreateLayer(tileUrl, "Parcels", GetMap);

}

function GetMap(tileSourceSpec, resourceInfo){

tileSourceSpec.Opacity=0.35;

map.AddTileLayer(tileSourceSpec,true);

$get("resultDiv").style.visibility ="hidden";

}

Page 28: ESRI Developer Summit 2008 - Microsoft Virtual Earth

function OnPageLoad(){

var centerat = new VELatLong(45.50634690108341, -122.67883300781251);

map = new VEMap('mymap');

map.LoadMap(centerat,15,VEMapStyle.Aerial ,false);

}

function AddMap(){

agisve_services = new ESRI.ArcGIS.VE.ArcGISLayerFactory();

agisve_services.CreateLayer(tileUrl, "Parcels", GetMap);

}

function GetMap(tileSourceSpec, resourceInfo){

tileSourceSpec.Opacity=0.35;

map.AddTileLayer(tileSourceSpec,true);

$get("resultDiv").style.visibility ="hidden";

}

Page 29: ESRI Developer Summit 2008 - Microsoft Virtual Earth
Page 30: ESRI Developer Summit 2008 - Microsoft Virtual Earth

© 2008 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.