Create a Supermap iclient Topic map, associate the External table, and filter by conditions

Source: Internet
Author: User

The previous topic diagram only associates with the External table and does not filter data based on Attribute conditions. There is no better sample program on the Internet, so I have crashed the iServer several times, the following are the key code for success.

:


// Link

VaR joinitem = new Supermap. Rest. joinitem ({
Foreigntablename: "v_region_land ",
Joinfilter: "bbs_parcel.cadastralno = v_region_land.cadastralno ",
Jointype: "innerjoin"
});

// Single-value style

VaR themeuniqueiteme30 = new Supermap. Rest. themeuniqueitem ({
Unique: _ discode, // specific field value of a single value
Style: style1
});

Themeunique2 = new Supermap. Rest. themeunique ({

Uniqueexpression: "v_region_land.fjbm", // single-Value Comparison Field
Items: [themeuniqueiteme30],
Defaultstyle: New Supermap. Rest. serverstyle ({
Fillopaquerate: 0,
Fillforecolor: New Supermap. Rest. servercolor (132,164,232 ),
Linecolor: New Supermap. Rest. servercolor (0,255, 0 ),
Linewidth: 0.1
})
}),
// Topic Map parameter object
Themeparameters = new Supermap. Rest. themeparameters ({
Themes: [themeunique2],
Displayfilters: ["v_region_land.fjbm =" + _ discode], // filter is effective here-core code
Datasourcenames: ["grid_sysdb"],
Datasetnames: ["bbs_parcel"],
Joinitems: [joinitem]

}),

Create a Supermap iclient Topic map, associate the External table, and filter by conditions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.