Questions
Unanswered
Register
|
Login
SuperMap Q&A
Home Page
/
View Questions
/
WebGIS
/
Infos
How to use L.supermap.initMap(url) for Leaflet; Initialize the 4490 map
yuanR
115EXP
2024.08.14
As title.
leaflet
Please [
log in
] or [
register
] to answer this question.
1 Answer
A, directly after the url "? token=... ” B, use the SecurityManager, refer to the below code: var url = 'http://xxx:8090/iserver/services/map-testdata/rest/maps/testdata'; var token ='xxxx' L.supermap.SecurityManager.registerToken(url,token);
root
242EXP
2024.08.14
Please [
log in
] or [
register
] to add a comment.
Follow us
LinkedIn
Facebook
Twitter
Instagram
YouTube
SuperMap Official Website
SuperMap Online
...