Select to view content in your preferred language

Open Street Map on Flex API 1.3 with Flex Builder 3

527
1
03-24-2011 07:14 AM
alfredman
Emerging Contributor
I am trying to put open street map as one of the basemap option in our application.

The code can be as simple as this:


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  xmlns:mx="http://www.adobe.com/2006/mxml"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:esri="http://www.esri.com/2008/ags"
               pageTitle="Using OpenStreetMap with ArcGIS API for Flex">                              
    <esri:Map logoVisible="false">
        <esri:OpenStreetMapLayer/>
    </esri:Map>
</mx:Application>

However, I always get this error on compliation:
"Could not resolve <esri:OpenStreetMapLayer> to a component implementation"

I am using ArcGIS API for Flex 1.3 on Flex Builder 3 , is OpenStreetMapLayer not available on 1.3 and I have to upgrade my Flex Builder to 4 inorder to use the later version of ArcGIS API before using this layer?

Thanks
Alfred
Tags (2)
0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor
I am trying to put open street map as one of the basemap option in our application...is OpenStreetMapLayer not available on 1.3...?


Correct, the OpenStreetMapLayer was added in version 2.1.
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/OpenStreetMapLayer.html
0 Kudos