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
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