Skip to content

Commit

Permalink
Add support for GeocoderMapService properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco committed Feb 26, 2013
1 parent 5c27940 commit bbcfcf0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,22 +240,24 @@
if (mapServicesEnabled)
{
if (configXML.searchlayers.length() > 0)
{
var mapService:GeocoderMapService;
var mapServices:Array = [];
var mapServiceProxyURL:String;
for each (var searchLayerXML:XML in configXML.searchlayers.searchlayer)
{
mapService = new GeocoderMapService();
mapService.layerIds = searchLayerXML.layerids.toString().split(",");
mapService.url = searchLayerXML.url.toString();
mapService.searchFields = searchLayerXML.searchfields.toString().split(",");
mapService.name = searchLayerXML.name.toString();
mapServiceProxyURL = searchLayerXML.proxyurl.toString() || configData.proxyUrl;
if (useProxy && configData.proxyUrl)
if (useProxy && mapServiceProxyURL)
{
mapService.proxyURL = configData.proxyUrl;
mapService.proxyURL = mapServiceProxyURL;
}
mapServices.push(mapService);
Expand Down

0 comments on commit bbcfcf0

Please sign in to comment.