If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Dynamic Map: Embedding OpenStreetMap as Background

Started by Joscha, 08 Aug 2016 07:20:23 AM

Previous topic - Next topic

Joscha

Hi Cognoise community,

I am using dynamic maps in my reports to visualize data for the german city Cologne. I used the visualization customizer to implement the coordinates of cologne and change the colour palette and it is working just fine now(after days of trial-and-error...).

Now I am trying to embedd OpenStreetMap background maps. I know that this is possible, because it is mentioned in the Documentation:

Quotecustom
Defines a custom extensible element.

Custom element is supported in web which can render a map layer with RAVE visualization. Custom element requires "customOptions" specified.


{
    "type": "custom",
    "customOptions": {
        "uri": "http://www.openstreetmap.org/"
    }
}


Custom element supported in java can render a map layer with RAVE visualization with a map from Open Street Maps. Custom element requires "customOptions" specified, even though no "customOptions" are honored for the java version. Open Street maps only supports mercator projections, so any RAVE spec that embeds this map should have a mercator projection defined.


"coordinates": {
"dimensions": [ {}, {} ],
"transforms": [{
"type": "projection",
"projectionParameters": { "name": "mercator" }
}]
},
"elements": [{
"type": "custom",
"customOptions":
{
"uri": ""
}
}]


Map controls for pan and zoom are created in both web and java as per space availability.

Note: Map custom element does not support coordinate system with multiple spans or outranges in the span. In a given specification, there can be only 1 map custom element. If a specification contains more than 1 grammars, only 1 grammar can contain map custom element. If the specification uses faceting, different map elements for each facet are NOT supported. Pan and zoom actions in map controls set the projection parameter method to stretch internally. As a result, scale range may not be honored after pan and zoom actions are performed.

Restriction: Custom maps are not supported when executed in non-interactive contexts.

I used the "custom"-code and embedded it in my map. I got no error-message, so I think I did it right, but no background map is shown. I'm pretty sure, that more adjustments are needed here, but I'm new to the topic and couldn't find any examples online.


So my question is: Does anybody know how to embedd OpenStreetMap as Background in Dynamic Maps?


Any help or ideas would be welcome!





I attached the customized dynamic map viz bundle (with embedded custom-element and coordinates of Cologne; mercator projection).