Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Uudised

Viimane: Thu, 15 Mar 2012 14:51:08
Teema: Vabad töökohad pakkuda
Veel uudiseid »

Streamed Cloudmade Maps with Style?

1 reply [Last post]
mounir
User offline. Last seen 48 weeks 4 days ago. Offline
Joined: 06/13/2011

Streamed Cloudmade Maps With STYLE

Hello, I am new to this forum though I have discovered some of the features of this amazing library. I have a small question, in this post: http://www.nutiteq.com/content/different-map-sources

The example of cloudmade map streaming states that it is using a style! But none of the parameters is the style.

How can I add a style to the streaming map constructor?

mapItem.setMap(new NutiteqStreamedMap("http://aws.nutiteq.com/mapstream.php?cmkey=MYKEY&ts=128&", "CloudMade", 128, 0, 19));

I got this code from the post I linked above

Thanks in advance :D

jaak
User offline. Last seen 4 days 20 hours ago. Offline
Joined: 06/19/2008

This URL actually does not use CloudMade at all, it is for Nutiteq map server, with OSM data and default style only.

For CloudMade there is one issue that there is token-based authorization from some time already, so you need to have made a token http request also, it is for specific user. In SDK CloudMade map is able to make the request, so if I have direct cloudmade service, then it knows some token and I can reuse it. In your case you may want to have some more suitable solution. Here parameter s= means style (999 is the Midnight Commander)


mapComponent.setMap(new NutiteqStreamedMap("http://aws.nutiteq.com/cloudmade_stream.php?cmkey="+CLOUDMADE_KEY+"&cmtoken="+cmMap.getCloudMadeToken()+"&s=999&ts=256&", "CloudMade, OSM, Nutiteq", 256, 0, 19));

/JaakL