SlideShare une entreprise Scribd logo
1  sur  86
Télécharger pour lire hors ligne
Web Mash Up
Making maps with web tools
Lesson Outcome


At the end of this segment, you will have:
1.    Your own interactive map

2.    Containing real data

3.    And an understanding of how to
      leverage the potential of web tools to
      produce maps
Some Cool Maps
Stamen Design: Water Color
Stamen Design: Toner
Stamen Design: Terrain
MapBox: Baltimore Dark, http://tiles.mapbox.com/mapbox
MapBox: DC Night Vision, http://tiles.mapbox.com/mapbox
MapBox: Control Room, http://tiles.mapbox.com/mapbox
Utilitarian Maps
Maps with data
Stamen Design: Oakland Crime Spotting, http://oakland.crimespotting.org
Stamen Design: San Francisco Crime Spotting, http://sanfrancisco.crimespotting.org
New York Times: Mapping America, Every City, Every Block, http://projects.nytimes.com/census/2010/explorer
New York Times: Mapping America, Every City, Every Block, http://projects.nytimes.com/census/2010/explorer
Cambridge: Solar Tool, http://cambridgema.gov/solar/
MIT: Resource Intensity of Cities, http://urbmet.org
4sqmap: Foursquare Maps and Statistics
To Do This

I’ll introduce you to simple
concepts in:
1.    GIS

2.    KML

3.    Data processing
Objectives

Learn to:
1.    Produce styled maps

2.    Append data to maps

3.    Include basic dynamic elements

4.    Make our maps freely accessible online
The Fun Part Styling Maps

Required components
for this exercise:

1.    Google styled map wizard

2.    Google maps

3.    Basic javascript
The Fun Part Styling Maps




http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html
The Fun Part Styling Maps

 Features
1.    Area of interest defined by Google

2.    You have control over what you
      want or do not want to show

3.    Dependent on the type of map you
      are building and the design goal it
      is meant to achieve
The Fun Part Styling Maps

Each feature has
2 elements
•  Geometry
   •  Shape
       •  Fill
       •  Stroke
•  Label
   •  Text
        •  Fill
        •  Stroke
   •  Icon
The Fun Part Styling Maps

Stylers
•  Visibility
    •  On
    •  Off
    •  Simplified

•  Colour
    •  RGB
    •  HSB
    •  Invert Lightness
The Fun Part Styling Maps
You may remember styling with CSS, this
is similar except that it is structured in a
different data format


                .json
          Java Script Object Notation
JSON Data Structure
 [!
      !{!
      !   !“A” :   [!
      !   !   !{   “A1”   :   “value”   },!
      !   !   !{   “A2”   :   “value”   },!
      !   !   !{   “A3”   :   “value”   },!
      !   !   !{   “A4”   :   “value”   },!
      !   !   !{   “A5”   :   “value”   }!
      !   !]!
      !},{!
      !   !“B” :   “value”,!
      !   !“C” :   “value”,!
      !   !“D” :   [!
      !   !   !{   “D1” : “value” }!
      !   !] !
      !} !    !!
 ]!
JSON Data Structure
 [!
      !{!
      !   !“stylers” : [!
      !   !   !{ “visibility” : “on” },!
      !   !   !{ “hue” : “#ff0000” },!
      !   !   !{ “saturation” : -100 },!
      !   !   !{ “lightness” : 4 },!
      !   !   !{ "gamma": 0.5 }!
      !   !]!
      !},{!
      !   !“featureType” : “road.highway”,!
      !   !“elementType” : “labels.icon”,!
      !   !“stylers” : [!
      !   !   !{ “visibility” : “off” }!
      !   !]!
      !} !    !!
 ]!
Another Way to Understand

                B




        A       C




                D
Another Way to Understand

        A1
                B

        A2


        A3      C


        A4

               D1
        A5
Another Way to Understand

        A1
                B

        A2


        A3      C


        A4

               D1
        A5
The Fun Part Styling Maps

.json Style file
•  Click show JSON

•  Copy and paste into empty
   document

•  Save document with .json
   extension
Data & GIS
•  The marker is an indication of a location
   on the map

•  Geographically, we understand this as a
   coordinate.

•  GIS is a way to work with data on digital
   maps.
Geographic Information System GIS

•  Is a broad term
•  A system to work with geographic data
•  In simplest form, GIS is the merger of:
  –  Cartography
  –  Analysis
  –  Database
GIS & Space
Projection & Coordinate System

Google Maps: Mercator projection
 – Latitude, Horizontal Grid, Rows
 – Longitude, Vertical Grid, Columns
 – Elevation, Depth, Z Axis
GIS & Space
Reading a coordinate
  –  Latitude, Longitude
     •  50.8790° N, 4.7015° E
     •  Google Search It
  –  Machine Readable Format
     •  Float Values
     •  50.877613, 4.70438
     •  Google Search It
Geo Coding

Finding geographic coordinates (in our case
latitude and longitude) from other
geographic data, (street addresses or Postal
codes)

       Street Address     Google Maps
Google Maps & Data
         Basic element of
         Google maps is
         the marker




         Latitude ,Longitude
How to find Lat Lon?
Many websites offer geocoding services
  –  http://www.findlatitudeandlongitude.com
  –  http://itouchmap.com/latlong.html
  –  http://stevemorse.org/jcal/latlon.php
  –  http://www.gpsvisualizer.com/geocode
Slightly Technical
How to include your style file
1.  Embed Google maps in a .html
    document

2.  Load your style file

3.  Bind your style with to the map
Slightly Technical

Embed Google maps



                     Device has no
                      GPS sensor
Slightly Technical
Embed Google maps
                     Where
                     we will center
                     the map
Slightly Technical
Embed Google maps
                     Define
                     map options
Slightly Technical
Embed Google maps

                     Map zoom
                     level
Slightly Technical
Embed Google maps

                     Set map
                     center
Slightly Technical
Embed Google maps

                     Specify the
                     type of map
Slightly Technical
Embed Google maps
                     Options

                     •    TERRAIN
                     •    ROADMAP
                     •    SATELLITE
                     •    HYBRID
Slightly Technical
Embed Google maps




    Display the map within the html div tag name
         ‘map’ with the defined map options
Slightly Technical
Load your style file


           URL of my file
 where the file lives in the computer
Slightly Technical
Load your style file

                       Load the style file into an
                       object called styles using
                       the defined options
Slightly Technical
Load your style file

                       Create a new map
                       type with the name
                       “styledMap”
Slightly Technical
Load your style file




           Instead of specifying 1
          map type, we can specify
             several as an array
Slightly Technical
Load your style file




                       The 2nd map type in this
                        case is our styled map
                          and its unique id is
                             ‘map_style’
Slightly Technical
Load your style file
                       Associate unique id
                       ‘map_style’ with maptype
                       ‘styledMap’
Let’s Make a Marker
How to add a marker
1.  Embed Google maps in a .html
    document

2.  Define a location in coordinates

3.  Add the marker to the map
Let’s Make a Marker
Define a location in coordinates
                         Create a new
                         marker object
Let’s Make a Marker
Define a location in coordinates
                        Set its position
Let’s Make a Marker
Add the marker
                 Tell it which map
                 it should go to
Is it customizable?
How to change the look of your marker
1.  Embed Google maps in a .html document

2.  Add your marker

3.  Change the marker with a .png file (max res. 32 x 32 pixels)
Custom Marker
Load marker image




          Get the marker image and
           define its anchor point
Custom Marker
Tell the marker to use your image




Simply add it to your marker
         options
Animate?
When someone clicks the marker…




     Pan the map to the marker
         when it is clicked
Geo Tagging
•  By making a geo tag, we are essentially
   associating location specific information
   with other data.
•  In doing so, we create a connection
   between data and space.

                                Twitter
                      Photo
     <Lat, Lon>                 Instagram
                                Facebook
                      Text      Flickr
Let’s Geotag Some Data
Simple geotagging
1.  Embed Google maps in a .html
    document

2.  Add the marker to the map

3.  Add html content
Let’s Geotag Some Data
Create an info window
Let’s Geotag Some Data
Specify its content




        Include all content into a single
                     html div
Let’s Geotag Some Data
When someone clicks the marker…



                   Send the content to
                   the info window
Let’s Geotag Some Data
When someone clicks the marker…



                   Open the info window
Is it customizable?
How to change the look of
your info window

1.  Embed Google maps in a .html
    document

2.  Add the marker to the map

3.  Add html content

4.  Style the content
Style the Info Window
We’ll need a plugin
Style the Info Window
                   Don’t move the
Customizable CSS   window because we
                   are already moving it
                   in the mouse event
Style the Info Window
Customizable CSS   Standard 1:1
                   aspect ratio
Batch Processing
•  Manually populating a map is time
   consuming
•  Datasets may contain up to several million
   objects
•  We can speed up this process
Batch Processing
Geo coding with Google spreadsheet

  1.  Get a set of addresses
  2.  Populate column B with addresses
  3.  In cell A1, insert
     •  http://maps.google.com/maps/geo?output=csv&q=
  4.  In cell C1 insert
     1.  =importData(CONCATENATE($A$1,B1))
     2.  Click & drag to iterate formula
Batch Processing
So what’s the extra stuff?

  1.  Column C = Query Response
  2.  Column D = Zoom Level
  3.  Create a new spreadsheet
    •    Bottom Left Corner ‘ + ‘ Symbol
  4.  Insert the following query into cell A1
    •    =query(Sheet1!B:F,"select B,E,F”)
  5.  Now the set is clean
Batch Processing
Publically Accessible

  1.  Select File
  2.  Select Publish to the web
  3.  Click Publish now
  4.  Copy the generated URL
  5.  For all subsequent changes to take effect,
      you must republish this document
Let’s See It On The Map
Get the source URL
Let’s See It On The Map
Load the data
Let’s See It On The Map
Parse it
                Break data
                down into
                individual lines
Let’s See It On The Map
Parse it
                Break down
                into individual
                words using
                comma as a
                splitter
Let’s See It On The Map
Parse it
                Create an array
                that will contain
                our data
Let’s See It On The Map
Parse it




           Send each line to the array
Let’s See It On The Map
Create multiple markers

                      For each data entry
                      Create a marker with the
                      corresponding lat,lon
Let’s See It On The Map
When a marker is clicked…




                   For the clicked marker among
                   all markers, get its
                   corresponding data and display
                   it in the infowindow
Assignment
Assignment
Assignment
•  Each student takes an address

•  Conducts field observation based on a list
   of characteristics

•  Bring your observation during the next
   lesson and we will attempt to complete it!

Contenu connexe

Similaire à Web Mashup Slides For Lesson 1

Mapping Immigrants
Mapping ImmigrantsMapping Immigrants
Mapping Immigrantsborderzine
 
Petec Google Earth
Petec Google EarthPetec Google Earth
Petec Google Earthdamopsu
 
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece CoLab Athens
 
How to Create a ArcGIS Story Map Final Presentation
How to Create a ArcGIS Story Map Final Presentation How to Create a ArcGIS Story Map Final Presentation
How to Create a ArcGIS Story Map Final Presentation Kathryn Cannon
 
3D Visualization in ArcGIS Pro
3D Visualization in ArcGIS Pro3D Visualization in ArcGIS Pro
3D Visualization in ArcGIS Prothangqd
 
Mongo db washington dc 2014
Mongo db washington dc 2014Mongo db washington dc 2014
Mongo db washington dc 2014ikanow
 
Google Mapy (Jaroslav Bengl)
Google Mapy (Jaroslav Bengl)Google Mapy (Jaroslav Bengl)
Google Mapy (Jaroslav Bengl)Jiří Šmída
 
GettingKnowTo ArcGIS10x
GettingKnowTo ArcGIS10xGettingKnowTo ArcGIS10x
GettingKnowTo ArcGIS10xmukti subedi
 
Data visualization - Courtland Jeffrey - Phoenix NewsTrain - 4.07.18
Data visualization - Courtland Jeffrey - Phoenix NewsTrain - 4.07.18Data visualization - Courtland Jeffrey - Phoenix NewsTrain - 4.07.18
Data visualization - Courtland Jeffrey - Phoenix NewsTrain - 4.07.18News Leaders Association's NewsTrain
 
NYC Open Data Meetup--D3.js workshop ii make beautiful maps
NYC Open Data Meetup--D3.js workshop ii make beautiful mapsNYC Open Data Meetup--D3.js workshop ii make beautiful maps
NYC Open Data Meetup--D3.js workshop ii make beautiful mapsVivian S. Zhang
 
Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011Jake Levitas
 
Developing Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTODeveloping Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTOCARTO
 
brandonbal-afm_tech
brandonbal-afm_techbrandonbal-afm_tech
brandonbal-afm_techBrandon Bal
 
Enrich Visually Google Map Information With Layers
Enrich Visually Google Map Information With LayersEnrich Visually Google Map Information With Layers
Enrich Visually Google Map Information With LayersOutSystems
 
Map box styles in GeoServer and OpenLayers
Map box styles in GeoServer and OpenLayersMap box styles in GeoServer and OpenLayers
Map box styles in GeoServer and OpenLayersJody Garnett
 
Kml Basics Chpt 3 Geometry
Kml Basics Chpt  3   GeometryKml Basics Chpt  3   Geometry
Kml Basics Chpt 3 Geometrytcooper66
 

Similaire à Web Mashup Slides For Lesson 1 (20)

Mapping Immigrants
Mapping ImmigrantsMapping Immigrants
Mapping Immigrants
 
Building story maps
Building story mapsBuilding story maps
Building story maps
 
Petec Google Earth
Petec Google EarthPetec Google Earth
Petec Google Earth
 
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
 
How to Create a ArcGIS Story Map Final Presentation
How to Create a ArcGIS Story Map Final Presentation How to Create a ArcGIS Story Map Final Presentation
How to Create a ArcGIS Story Map Final Presentation
 
3D Visualization in ArcGIS Pro
3D Visualization in ArcGIS Pro3D Visualization in ArcGIS Pro
3D Visualization in ArcGIS Pro
 
Mongo db washington dc 2014
Mongo db washington dc 2014Mongo db washington dc 2014
Mongo db washington dc 2014
 
Geolocation and Mapping
Geolocation and MappingGeolocation and Mapping
Geolocation and Mapping
 
Google Mapy (Jaroslav Bengl)
Google Mapy (Jaroslav Bengl)Google Mapy (Jaroslav Bengl)
Google Mapy (Jaroslav Bengl)
 
GettingKnowTo ArcGIS10x
GettingKnowTo ArcGIS10xGettingKnowTo ArcGIS10x
GettingKnowTo ArcGIS10x
 
Data visualization - Courtland Jeffrey - Phoenix NewsTrain - 4.07.18
Data visualization - Courtland Jeffrey - Phoenix NewsTrain - 4.07.18Data visualization - Courtland Jeffrey - Phoenix NewsTrain - 4.07.18
Data visualization - Courtland Jeffrey - Phoenix NewsTrain - 4.07.18
 
NYC Open Data Meetup--D3.js workshop ii make beautiful maps
NYC Open Data Meetup--D3.js workshop ii make beautiful mapsNYC Open Data Meetup--D3.js workshop ii make beautiful maps
NYC Open Data Meetup--D3.js workshop ii make beautiful maps
 
Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011Making Beautiful Maps: Oct 5 2011
Making Beautiful Maps: Oct 5 2011
 
Developing Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTODeveloping Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTO
 
brandonbal-afm_tech
brandonbal-afm_techbrandonbal-afm_tech
brandonbal-afm_tech
 
Enrich Visually Google Map Information With Layers
Enrich Visually Google Map Information With LayersEnrich Visually Google Map Information With Layers
Enrich Visually Google Map Information With Layers
 
Maps, News and Geography
Maps, News and GeographyMaps, News and Geography
Maps, News and Geography
 
Map box styles in GeoServer and OpenLayers
Map box styles in GeoServer and OpenLayersMap box styles in GeoServer and OpenLayers
Map box styles in GeoServer and OpenLayers
 
Kml Basics Chpt 3 Geometry
Kml Basics Chpt  3   GeometryKml Basics Chpt  3   Geometry
Kml Basics Chpt 3 Geometry
 
Agi08 Jeremy Morley
Agi08 Jeremy MorleyAgi08 Jeremy Morley
Agi08 Jeremy Morley
 

Dernier

办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一z xss
 
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学欧克莱尔分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学欧克莱尔分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#...毕业文凭制作#回国入职#diploma#degree美国威斯康星大学欧克莱尔分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学欧克莱尔分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#...ttt fff
 
306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social MediaD SSS
 
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一D SSS
 
办理澳大利亚国立大学毕业证ANU毕业证留信学历认证
办理澳大利亚国立大学毕业证ANU毕业证留信学历认证办理澳大利亚国立大学毕业证ANU毕业证留信学历认证
办理澳大利亚国立大学毕业证ANU毕业证留信学历认证jdkhjh
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCRdollysharma2066
 
韩国SKKU学位证,成均馆大学毕业证书1:1制作
韩国SKKU学位证,成均馆大学毕业证书1:1制作韩国SKKU学位证,成均馆大学毕业证书1:1制作
韩国SKKU学位证,成均馆大学毕业证书1:1制作7tz4rjpd
 
General Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptxGeneral Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptxmarckustrevion
 
办理学位证(UCSD证书)美国加利福尼亚大学圣迭戈分校毕业证成绩单原版一比一
办理学位证(UCSD证书)美国加利福尼亚大学圣迭戈分校毕业证成绩单原版一比一办理学位证(UCSD证书)美国加利福尼亚大学圣迭戈分校毕业证成绩单原版一比一
办理学位证(UCSD证书)美国加利福尼亚大学圣迭戈分校毕业证成绩单原版一比一A SSS
 
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一Fi sss
 
办理学位证(SFU证书)西蒙弗雷泽大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙弗雷泽大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙弗雷泽大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙弗雷泽大学毕业证成绩单原版一比一F dds
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Apresentação Clamo Cristo -letra música Matheus Rizzo
Apresentação Clamo Cristo -letra música Matheus RizzoApresentação Clamo Cristo -letra música Matheus Rizzo
Apresentação Clamo Cristo -letra música Matheus RizzoCarolTelles6
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfAayushChavan5
 
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services DubaiDubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubaikojalkojal131
 
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...katerynaivanenko1
 
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改yuu sss
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxmapanig881
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Servicejennyeacort
 

Dernier (20)

办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
 
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学欧克莱尔分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学欧克莱尔分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#...毕业文凭制作#回国入职#diploma#degree美国威斯康星大学欧克莱尔分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学欧克莱尔分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#...
 
306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media
 
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
(办理学位证)约克圣约翰大学毕业证,KCL成绩单原版一比一
 
办理澳大利亚国立大学毕业证ANU毕业证留信学历认证
办理澳大利亚国立大学毕业证ANU毕业证留信学历认证办理澳大利亚国立大学毕业证ANU毕业证留信学历认证
办理澳大利亚国立大学毕业证ANU毕业证留信学历认证
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
 
韩国SKKU学位证,成均馆大学毕业证书1:1制作
韩国SKKU学位证,成均馆大学毕业证书1:1制作韩国SKKU学位证,成均馆大学毕业证书1:1制作
韩国SKKU学位证,成均馆大学毕业证书1:1制作
 
General Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptxGeneral Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptx
 
办理学位证(UCSD证书)美国加利福尼亚大学圣迭戈分校毕业证成绩单原版一比一
办理学位证(UCSD证书)美国加利福尼亚大学圣迭戈分校毕业证成绩单原版一比一办理学位证(UCSD证书)美国加利福尼亚大学圣迭戈分校毕业证成绩单原版一比一
办理学位证(UCSD证书)美国加利福尼亚大学圣迭戈分校毕业证成绩单原版一比一
 
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
 
办理学位证(SFU证书)西蒙弗雷泽大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙弗雷泽大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙弗雷泽大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙弗雷泽大学毕业证成绩单原版一比一
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Apresentação Clamo Cristo -letra música Matheus Rizzo
Apresentação Clamo Cristo -letra música Matheus RizzoApresentação Clamo Cristo -letra música Matheus Rizzo
Apresentação Clamo Cristo -letra música Matheus Rizzo
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdf
 
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services DubaiDubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
 
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
 
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptx
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
 

Web Mashup Slides For Lesson 1

  • 1. Web Mash Up Making maps with web tools
  • 2. Lesson Outcome At the end of this segment, you will have: 1.  Your own interactive map 2.  Containing real data 3.  And an understanding of how to leverage the potential of web tools to produce maps
  • 7. MapBox: Baltimore Dark, http://tiles.mapbox.com/mapbox
  • 8. MapBox: DC Night Vision, http://tiles.mapbox.com/mapbox
  • 9. MapBox: Control Room, http://tiles.mapbox.com/mapbox
  • 11. Stamen Design: Oakland Crime Spotting, http://oakland.crimespotting.org
  • 12. Stamen Design: San Francisco Crime Spotting, http://sanfrancisco.crimespotting.org
  • 13. New York Times: Mapping America, Every City, Every Block, http://projects.nytimes.com/census/2010/explorer
  • 14. New York Times: Mapping America, Every City, Every Block, http://projects.nytimes.com/census/2010/explorer
  • 15. Cambridge: Solar Tool, http://cambridgema.gov/solar/
  • 16. MIT: Resource Intensity of Cities, http://urbmet.org
  • 17. 4sqmap: Foursquare Maps and Statistics
  • 18. To Do This I’ll introduce you to simple concepts in: 1.  GIS 2.  KML 3.  Data processing
  • 19. Objectives Learn to: 1.  Produce styled maps 2.  Append data to maps 3.  Include basic dynamic elements 4.  Make our maps freely accessible online
  • 20. The Fun Part Styling Maps Required components for this exercise: 1.  Google styled map wizard 2.  Google maps 3.  Basic javascript
  • 21. The Fun Part Styling Maps http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html
  • 22. The Fun Part Styling Maps Features 1.  Area of interest defined by Google 2.  You have control over what you want or do not want to show 3.  Dependent on the type of map you are building and the design goal it is meant to achieve
  • 23. The Fun Part Styling Maps Each feature has 2 elements •  Geometry •  Shape •  Fill •  Stroke •  Label •  Text •  Fill •  Stroke •  Icon
  • 24. The Fun Part Styling Maps Stylers •  Visibility •  On •  Off •  Simplified •  Colour •  RGB •  HSB •  Invert Lightness
  • 25. The Fun Part Styling Maps You may remember styling with CSS, this is similar except that it is structured in a different data format .json Java Script Object Notation
  • 26. JSON Data Structure [! !{! ! !“A” : [! ! ! !{ “A1” : “value” },! ! ! !{ “A2” : “value” },! ! ! !{ “A3” : “value” },! ! ! !{ “A4” : “value” },! ! ! !{ “A5” : “value” }! ! !]! !},{! ! !“B” : “value”,! ! !“C” : “value”,! ! !“D” : [! ! ! !{ “D1” : “value” }! ! !] ! !} ! !! ]!
  • 27. JSON Data Structure [! !{! ! !“stylers” : [! ! ! !{ “visibility” : “on” },! ! ! !{ “hue” : “#ff0000” },! ! ! !{ “saturation” : -100 },! ! ! !{ “lightness” : 4 },! ! ! !{ "gamma": 0.5 }! ! !]! !},{! ! !“featureType” : “road.highway”,! ! !“elementType” : “labels.icon”,! ! !“stylers” : [! ! ! !{ “visibility” : “off” }! ! !]! !} ! !! ]!
  • 28. Another Way to Understand B A C D
  • 29. Another Way to Understand A1 B A2 A3 C A4 D1 A5
  • 30. Another Way to Understand A1 B A2 A3 C A4 D1 A5
  • 31. The Fun Part Styling Maps .json Style file •  Click show JSON •  Copy and paste into empty document •  Save document with .json extension
  • 32. Data & GIS •  The marker is an indication of a location on the map •  Geographically, we understand this as a coordinate. •  GIS is a way to work with data on digital maps.
  • 33. Geographic Information System GIS •  Is a broad term •  A system to work with geographic data •  In simplest form, GIS is the merger of: –  Cartography –  Analysis –  Database
  • 34. GIS & Space Projection & Coordinate System Google Maps: Mercator projection – Latitude, Horizontal Grid, Rows – Longitude, Vertical Grid, Columns – Elevation, Depth, Z Axis
  • 35. GIS & Space Reading a coordinate –  Latitude, Longitude •  50.8790° N, 4.7015° E •  Google Search It –  Machine Readable Format •  Float Values •  50.877613, 4.70438 •  Google Search It
  • 36. Geo Coding Finding geographic coordinates (in our case latitude and longitude) from other geographic data, (street addresses or Postal codes) Street Address Google Maps
  • 37. Google Maps & Data Basic element of Google maps is the marker Latitude ,Longitude
  • 38. How to find Lat Lon? Many websites offer geocoding services –  http://www.findlatitudeandlongitude.com –  http://itouchmap.com/latlong.html –  http://stevemorse.org/jcal/latlon.php –  http://www.gpsvisualizer.com/geocode
  • 39. Slightly Technical How to include your style file 1.  Embed Google maps in a .html document 2.  Load your style file 3.  Bind your style with to the map
  • 40. Slightly Technical Embed Google maps Device has no GPS sensor
  • 41. Slightly Technical Embed Google maps Where we will center the map
  • 42. Slightly Technical Embed Google maps Define map options
  • 43. Slightly Technical Embed Google maps Map zoom level
  • 44. Slightly Technical Embed Google maps Set map center
  • 45. Slightly Technical Embed Google maps Specify the type of map
  • 46. Slightly Technical Embed Google maps Options •  TERRAIN •  ROADMAP •  SATELLITE •  HYBRID
  • 47. Slightly Technical Embed Google maps Display the map within the html div tag name ‘map’ with the defined map options
  • 48. Slightly Technical Load your style file URL of my file where the file lives in the computer
  • 49. Slightly Technical Load your style file Load the style file into an object called styles using the defined options
  • 50. Slightly Technical Load your style file Create a new map type with the name “styledMap”
  • 51. Slightly Technical Load your style file Instead of specifying 1 map type, we can specify several as an array
  • 52. Slightly Technical Load your style file The 2nd map type in this case is our styled map and its unique id is ‘map_style’
  • 53. Slightly Technical Load your style file Associate unique id ‘map_style’ with maptype ‘styledMap’
  • 54. Let’s Make a Marker How to add a marker 1.  Embed Google maps in a .html document 2.  Define a location in coordinates 3.  Add the marker to the map
  • 55. Let’s Make a Marker Define a location in coordinates Create a new marker object
  • 56. Let’s Make a Marker Define a location in coordinates Set its position
  • 57. Let’s Make a Marker Add the marker Tell it which map it should go to
  • 58. Is it customizable? How to change the look of your marker 1.  Embed Google maps in a .html document 2.  Add your marker 3.  Change the marker with a .png file (max res. 32 x 32 pixels)
  • 59. Custom Marker Load marker image Get the marker image and define its anchor point
  • 60. Custom Marker Tell the marker to use your image Simply add it to your marker options
  • 61. Animate? When someone clicks the marker… Pan the map to the marker when it is clicked
  • 62. Geo Tagging •  By making a geo tag, we are essentially associating location specific information with other data. •  In doing so, we create a connection between data and space. Twitter Photo <Lat, Lon> Instagram Facebook Text Flickr
  • 63. Let’s Geotag Some Data Simple geotagging 1.  Embed Google maps in a .html document 2.  Add the marker to the map 3.  Add html content
  • 64. Let’s Geotag Some Data Create an info window
  • 65. Let’s Geotag Some Data Specify its content Include all content into a single html div
  • 66. Let’s Geotag Some Data When someone clicks the marker… Send the content to the info window
  • 67. Let’s Geotag Some Data When someone clicks the marker… Open the info window
  • 68. Is it customizable? How to change the look of your info window 1.  Embed Google maps in a .html document 2.  Add the marker to the map 3.  Add html content 4.  Style the content
  • 69. Style the Info Window We’ll need a plugin
  • 70. Style the Info Window Don’t move the Customizable CSS window because we are already moving it in the mouse event
  • 71. Style the Info Window Customizable CSS Standard 1:1 aspect ratio
  • 72. Batch Processing •  Manually populating a map is time consuming •  Datasets may contain up to several million objects •  We can speed up this process
  • 73. Batch Processing Geo coding with Google spreadsheet 1.  Get a set of addresses 2.  Populate column B with addresses 3.  In cell A1, insert •  http://maps.google.com/maps/geo?output=csv&q= 4.  In cell C1 insert 1.  =importData(CONCATENATE($A$1,B1)) 2.  Click & drag to iterate formula
  • 74. Batch Processing So what’s the extra stuff? 1.  Column C = Query Response 2.  Column D = Zoom Level 3.  Create a new spreadsheet •  Bottom Left Corner ‘ + ‘ Symbol 4.  Insert the following query into cell A1 •  =query(Sheet1!B:F,"select B,E,F”) 5.  Now the set is clean
  • 75. Batch Processing Publically Accessible 1.  Select File 2.  Select Publish to the web 3.  Click Publish now 4.  Copy the generated URL 5.  For all subsequent changes to take effect, you must republish this document
  • 76. Let’s See It On The Map Get the source URL
  • 77. Let’s See It On The Map Load the data
  • 78. Let’s See It On The Map Parse it Break data down into individual lines
  • 79. Let’s See It On The Map Parse it Break down into individual words using comma as a splitter
  • 80. Let’s See It On The Map Parse it Create an array that will contain our data
  • 81. Let’s See It On The Map Parse it Send each line to the array
  • 82. Let’s See It On The Map Create multiple markers For each data entry Create a marker with the corresponding lat,lon
  • 83. Let’s See It On The Map When a marker is clicked… For the clicked marker among all markers, get its corresponding data and display it in the infowindow
  • 86. Assignment •  Each student takes an address •  Conducts field observation based on a list of characteristics •  Bring your observation during the next lesson and we will attempt to complete it!