• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Qt Location API
 

Qt Location API

on

  • 1,192 views

Introdução à API de Location do QtMobility

Introdução à API de Location do QtMobility

Statistics

Views

Total Views
1,192
Views on SlideShare
1,191
Embed Views
1

Actions

Likes
0
Downloads
7
Comments
0

1 Embed 1

http://www.slashdocs.com 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Qt Location API Qt Location API Presentation Transcript

    • Qt Location API1
    • Sumário • Mapas • Projeção de Mercator • QML Plugin2
    • Mapas • Como funciona? • Casos de uso • APIs3
    • Mapas• Podemos baixar imagens diretamente.http://maptile.maps.svc.ovi.com/maptiler/maptile/newest/normal.day/[z]/[x]/[y]/256/png8• Onde• Z – representa o nível de zoom• X – Longitude• Y – Latitude 4
    • Exemplo• Zoom = 0, X = 0, Y = 0http://maptile.maps.svc.ovi.com/maptiler/maptile/newest/normal.day/0/0/0/256/png8 5
    • Projeção de Mercator • Níveis de zoom 0 1 tile o mundo inteiro 1 tile 1 2 x 2 tiles 4 tiles 2 4 x 4 tiles 16 tiles ... ... ... 12 4096 x 4096 tiles 16.777.216 tiles ... ... ... n 2ⁿ x 2ⁿ tiles 2²ⁿ tiles • Tile names X = longitude Y = log(tan(latitude)+sec(latitude)) X = (1+ (x/∏))/2 Y = (1 – (y/∏))/2 n = 2 ^ zoom Xtile = ((lon_deg + 180) / 360) * n Ytile = (1 - (log(tan(lat_rad) + sec(lat_rad)) / π)) / 2 * n
    • Localizando Manaus • Latitude = -3, Longitude = -60, Zoom = 11, n = 2^11 = 2048 • Xtile = (-60 + 180) / 360 * 2048 = 682,666 • Ytile = (1 – (ln(tan(-3∏/180) + sec(-3∏/180))/∏)) /2 * 2048 = 1041,420http://maptile.maps.svc.ovi.com/maptiler/maptile/newest/normal.day/11/682/1041/256/png8 7
    • QML Plugin• Mapas• Posicionamento• Marcadores 8
    • Mapas• Elemento Map• plugin• zoomLevel 9
    • Posicionamento• Elemento PositionSource 10
    • Marcadores• Landmark• LandmarkModel| 11
    • Marcadores• MapObjectView 12 12
    • Elementos de Mapas• MapCircle• MapImage• MapMouseArea• MapPolygon• Plugin 13 13
    • $ git clone git://github.com/INdT/location-example.git blog.qtlabs.org.br/2012/03/23/qml-location-apiDEMO14
    • Dúvidas? André Loureiro – andre.loureiro@openbossa.org Jefferson Delfes – jefferson.delfes@openbossa.org15