Opened 13 years ago

Closed 12 years ago

#676 closed enhancement (fixed)

[ADD] After #671 is closed, find a legal way to incorporate Yahoo maps

Reported by: Chris Browet Owned by: Chris Browet
Priority: critical Milestone:
Component: merkaartor Version:
Keywords: Cc:


Possible paths:

  • Use the firefox hack (à la JOSM)
  • Wait for QT 4.4 which will have Webkit integrated
  • Use QtScript? (if comaptible with Yahoo AJAX api)

Change History (8)

comment:1 Changed 13 years ago by Tom Hughes

I did play with this for JOSM using the Javascript stuff that recent versions of Java have, but never got very far.

The problem is that the API doesn't have things like "give me an image for this area" or "give me tiles for this area", but rather "render a map of this area in this <div> on the page". So you need to fake up enough of the DOM for it to find a div element and populate it with tiles, then extract the images from those tiles.

comment:2 Changed 13 years ago by bart@…

Technically the best way would be to wait for Qt 4.4 (out Q1 2008 I hope) which would include WebKit?. That would allow us to load up and display pages including those from yahoo maps within Merkaartor. To get the content as a backdrop I see to possibilities

A custom QNetworkManager where we can filter all network traffic and filter all images.

Rendering the Webkit widget to a QPixmap and then crop and scale to the area we are interested in.

comment:3 Changed 13 years ago by Chris Browet

Yes, waiting fot Qt 4.4/webkit seems the soundest solution.

Waiting for the release, I can still make some progress using the technology preview.

comment:4 Changed 12 years ago by Chris Browet

Owner: changed from bvh-osm@… to Chris Browet
Priority: minorcritical
Status: newassigned
Type: defectenhancement

comment:5 Changed 12 years ago by Chris Browet

(In [7236]) ADD : Initial commit of legal Yahoo background maps (refs #676)

comment:6 Changed 12 years ago by Chris Browet

(In [7378]) ADD : link to working webkit - part 1 - .pro (refs #676) ADD : Merkaartor icon (closes #832) FIX : French translation

comment:7 Changed 12 years ago by Chris Browet

(In [7379]) ADD : link to working webkit - part 2 - actual link (refs #676)

comment:8 Changed 12 years ago by Chris Browet

Resolution: fixed
Status: assignedclosed

I think I can close this one, as the webkit seems to work reasonably well

Note: See TracTickets for help on using tickets.