Answering my own question, there's an
error in the MapX documentation. There's a Done=False missing in the Request
Data event in the example of doing unbound data binding.
cheers,
Mats Johansson
>Hi!
>I'm obviously new to MapX, and really not a GIS person. However, >I need to get this particular thing to work:
>
>I have a point maplayer, consisting of train stations. I'd
>I'm obviously new to MapX, and really not a GIS person. However, >I need to get this particular thing to work:
>
>I have a point maplayer, consisting of train stations. I'd
>like to use a variantarray of station data and create an
unbound
>dataset, binding the data to the train stations. I think I've
succeeded
>to create the dataset correctly, but when I create a
>GradSymbol theme, the data doesn't show in the map (I'd like
to
>get a symbol to the side of each and every station in
the
>variantarray). What am I doing wrong?
>
>The code looks like this:
>
> m_vntData(1, 1) = "station 1"
> m_vntData(1, 2) = 20000
> m_vntData(2, 1) = "station 2"
> m_vntData(2, 2) = 50000
> m_vntData(3, 1) = "station 3"
> m_vntData(3, 2) = 80000
> m_vntData(4, 1) = "station 4"
> m_vntData(4, 2) = 120000
>
> flds.Add "station", "sign", miAggregationIndividual, >miTypeString
> flds.Add "amount", "amount", miAggregationSum, miTypeNumeric
>
> Set ds = mapSverige.Datasets.Add(miDataSetUnbound, Nothing, "Stationdataset", 1, , "station", flds)
> ds.Themes.Add miThemeGradSymbol, "amount", "swetheme"
>
>
>Obviously I must be doing something wrong, does anyone have a >clue?
>
>TIA,
>
>Mats Johansson
>
>
>The code looks like this:
>
> m_vntData(1, 1) = "station 1"
> m_vntData(1, 2) = 20000
> m_vntData(2, 1) = "station 2"
> m_vntData(2, 2) = 50000
> m_vntData(3, 1) = "station 3"
> m_vntData(3, 2) = 80000
> m_vntData(4, 1) = "station 4"
> m_vntData(4, 2) = 120000
>
> flds.Add "station", "sign", miAggregationIndividual, >miTypeString
> flds.Add "amount", "amount", miAggregationSum, miTypeNumeric
>
> Set ds = mapSverige.Datasets.Add(miDataSetUnbound, Nothing, "Stationdataset", 1, , "station", flds)
> ds.Themes.Add miThemeGradSymbol, "amount", "swetheme"
>
>
>Obviously I must be doing something wrong, does anyone have a >clue?
>
>TIA,
>
>Mats Johansson
>
