Pages: [1]
Print
Author Topic: Implimenting Map Styles in Lite-Radius  (Read 385 times)
EvilKefka
Pre-Sales
Newbie
*
Posts: 7


« on: March 18, 2011, 08:22:40 PM »

I'm trying to implement the following into the xml_g_maps.js to change the colors of the roads:
Code:
var roadStyles = [
{
featureType: "road.highway",
elementType: "all",
stylers: [
{ hue: "#00ff09" },
{ lightness: -58 }
]
},{
featureType: "road.arterial",
elementType: "all",
stylers: [
{ hue: "#5eff00" },
{ lightness: -14 }
]
},{
featureType: "road.local",
elementType: "all",
stylers: [
{ hue: "#00ff09" },
{ lightness: -27 } ]
},{ featureType: "all",
elementType: "all",
stylers: [ ] }
];

But whenever I try putting it into xml_g_maps.js, editing the map initialization, then upload the file and reload the page, the map is gone. Can someone explain how to manipulate the file to be able to use this Map Style?
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #1 on: April 05, 2011, 03:14:20 PM »

Changing map styles is a styling capabilty not included in the current release of LiteRadius, so your implementation, cannot be replicated. You might have a better chance implementing road styles via a separate .js script and then apply that style to the map, along with the other onload functions.
Logged
Pages: [1]
Print
Jump to: