Hey,
How do I add in the bool option to display TRAFFIC INCIDENTS on my existing Here map container.
JSON Rest API?
H
Hey,
How do I add in the bool option to display TRAFFIC INCIDENTS on my existing Here map container.
JSON Rest API?
H
I assume you mean traffic data overlay on your map container. Here is how you do it,
Hope it helps.Code:// Get the DOM node to which we will append the map var mapContainer = document.getElementById("mapContainer"); // Create a map inside the map container DOM node var map = new nokia.maps.map.Display(mapContainer, { // initial center and zoom level of the map center: [51.49, -0.12], zoomLevel: 13, components: [ // ZoomBar provides a UI to zoom the map in & out new nokia.maps.map.component.ZoomBar(), // We add the behavior component to allow panning / zooming of the map new nokia.maps.map.component.Behavior(), // Creates a toggle button to show/hide traffic information on the map new nokia.maps.map.component.Traffic() ] }); // Enable traffic layer map.overlays.add(nokia.maps.map.Display.TRAFFIC);
Pankaj Nathani
www.croozeus.com
Hey croozeus,
thanks, that just shows the traffic overlay though, not the incidents I can see in the the demo version online. I wish I could attach a file with a screen shot of them in.
Harvo18
Pankaj Nathani
www.croozeus.com
Hi,
The traffic icon does not appear on the Iphone 4 in portrait mode when added to the page : new nokia.maps.map.component.Traffic()
It's displays correctly in landscape mode.
Is there a fix?
This is a new post and I don't know how to delete the previous message !
Thanks for the quick reply....here is the link to the traffic incidents.....
http://here.com/53.5828602,-1.048874...ffic%20map.day
Harvo
Last edited by harvo18; 2013-03-07 at 09:06.
Adding traffic incidents is not freely and publicly available due to licensing constraints. If you read the Licensing and Terms of the API, you will see that although traffic tile service is included in the CORE package, traffic incidents are not. This is currently an enterprise feature - to obtain it you will need to Request a custom package with more features at the bottom of the plans page
Thanks Jason,
We have this with Nokia, how do we access the 'enterprise features'? Is there a separate API page with different methods etc?
Yes, Enterprise is separate - I have PM'd you the details.
Thanks Jas,
I have asked our team and they have supplied a username and pword for the enterprise version, it's all in there.
Thanks again.
H