如何同时实现iClient for Leaflet的多种功能

0 投票

想要在只定义一个url的情况下,实现多个iClient for Leaflet的功能,比如矢量瓦片和图层显隐性控制这两个功能,但是代码里面这两种map的定义方式是不一样的,矢量瓦片是这样的:

    var host = "http://127.0.0.1:8090";
    var map, selectId, selectLayerName, vectorLayer,
        url = host+"/iserver/services/map-tm100/rest/maps/vec@天地图";
    map = L.map('map', {
        center: {lon: 119.40, lat: 30.36},
		 crs: L.CRS.EPSG4326,
        maxZoom: 15,
        zoom:11
    });

图层控制的定义方式是这样的:

            var map;
            var layer;
            var url ;
            var tempLayerID ,
            host = document.location.toString().match(/file:\/\//)?"http://127.0.0.1:8090":'http://' + document.location.host,
            url =host+"/iserver/services/map-tm100/rest/maps/vec@天地图";

这两种定义方式有什么不同吗

7月 24, 2018 分类:  3576次浏览 | 用户: 杨依菲 (5 分)
重新显示 7月 26, 2018 用户:杨依菲

11 个回答

0 投票
您好,1.你发的这两种方式是一模一样的;2.你是不是转发的天地图?是的话你这个是栅格瓦片。
7月 24, 2018 用户: 李熙y 名扬四海 (4,436 分)
1.你的矢量数据发了地图服务了吗?

2.你分开使用图层显隐性功能是没有问题的这个是怎么用的?
问题成功解决了。谢谢!
这个问题是怎么解决的能告诉我吗?代码也发一下
代码暂时找不出来、这两种定义的方式是一样的,之所以矢量瓦片功能和图层显隐性功能无法整合是因为这两个我们之前用的接口不同,一个用的是for leaflet,还有一个用的是别的,所以不能整合,当时超图工作人员建议我们用leaflet的接口做图层显隐性。
等您有空,能帮忙找一下代码吗?多谢!
0 投票
<b>Tour in Verona 2019 </b>
https://www.segwayverona.com/
 
<u>Experience historic Verona from a unique perspective on a 2-hour Segway tour. Glide through the historic center with a tour leader and informative audio guide. See monuments such as the Verona Arena, Castelvecchio, Verona Cathedral and Casa di Giulietta.</u>
 
About this activity
Duration 2 hours
Printed or mobile voucher accepted
 
Instant confirmation
 
Live guide
English, Italian, Russian
Audio guide/headphones
English, German, Italian, Russian
Booklets
Spanish, English, French, German, Italian, Japanese, Russian
 
Easy cancellation
Cancel up to 24 hours in advance for a full refund
4月 24 用户: ArvingLem (5 分)
0 投票
Hi! Looking for a boyfrend
Register and find me, my nickname Candice ->>>>>>>> http://b.link/sexdating
 
 
<a href=http://gettingmeet.com>dating sex site</a>
4月 25 用户: KristineBrowmn 才疏学浅 (15 分)
0 投票
Hello! I MASTURBATЕ ОN WЕBCAM CОMЕ TО MY PAGЕ!
Register and write me, my nickname Jenny24 ->>>>>>>> http://b.link/sexdating
 
 
<a href=http://b.link/sexmeets>dating sex site</a>
4月 25 用户: KristineBrowmn 才疏学浅 (15 分)
0 投票
Hello! Looking for a boyfrend
Register and write me, my nickname Jenny24 ->>>>>>>> http://b.link/sexdate
 
 
<a href=http://b.link/sexmeets>dating free sex</a>
4月 25 用户: KristineBrowmn 才疏学浅 (15 分)
0 投票
Crystal JEWELRY, lab created crystals, Earrings stud piercing
 
You are Welcome in my stud earrings exhibition by AmberWizard!  https://www.etsy.com/shop/Amberwizard
 
<a href=https://www.etsy.com/shop/Amberwizard?ref=hdr_shop_menu&section_id=23612728> Stud Earrings round plastic different colors crystals for everybody</a>
 
Gift, present, Women girls jewelry for Her
 
<a href=https://www.etsy.com/listing/615366121/stud-ruby-crystal-tiny-mini-earrings-lab?ref=shop_home_active_5&frs=1><img src="https://i.etsystatic.com/11536221/r/il/2a70cb/1648009879/il_794xN.1648009879_haq3.jpg"></a>
 
.
5月 7 用户: Alisaevom 才疏学浅 (10 分)
0 投票
AMBER JEWELRY, Natural BALTIC AMBER, Earrings hoop piercing chandelier
 
You are Welcome in my Baltic Amber shop AmberWizard!  https://www.etsy.com/shop/amberwizard
 
<a href=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav&section_id=17803063>AMBER Earrings Round Yellow beads</a>
 
Gift, present, Women girls jewelry
 
<a href=https://www.etsy.com/listing/530210864/natural-baltic-amber-earrings-round?ref=shop_home_active_1&frs=1><img src="https://i.etsystatic.com/11536221/r/il/5ebebb/1382729854/il_794xN.1382729854_6yx2.jpg"></a>
 
.
5月 11 用户: Alisaevom 才疏学浅 (10 分)
0 投票
I looked closely at Jan. Her face and breasts were flushed, and she was breathing heavily. A smile crossed my lips as it dawned on me.TO BE CONTINUED..."Turn around, then," John gasped slamming one last time into Kelly's pussy."You may be a whore," John said softly, "but you're a very expensive one, and I love fucking you Sis. And I love watching you get fucked too."
 
 
 
"Mmm, you like that," she encouraged. "What else can I do to get you to pop?"“Again.”Anne was now pulling insistently on my cock. I knew what it was she wanted: a cock in her mouth. Without changing the placement of my tongue on Jan's heated pussy, I scooted my hips towards my Sweethearts' waiting, open mouth. Now, with my cock sliding between her lips, Anne's squeals of delight were muffled significantly. This caused Janet to look curiously down between her heaving breasts at Anne. Smiling, her eyes locked with mine."All I care about right now is Doug coming." She winked as she lowered herself to the floor next to me. "Right in my mouth!"
5月 20 用户: LauraMus (5 分)
0 投票
"Where were you, slow pokes?" she asked.I thrust my cock up between Cassidy's soft melons. I LOVE tit fucking. It felt so soft and so firm at the same time, Cassidy's smooth, young tit flesh tightly enclosing my shaft as it slid up and down between her wet melons. As I thrust back and forth into her tunnel of tit flesh, I was also amazed that Cassidy would let me do this. She had to squat in the shower, with spray from the shower water running over her face, but she smiled up at me with her big, blue eyes as I pushed my cock in and out from between the tight tunnel of her breasts.Anja was as stunning as the other women. Almost a head taller than Janet, barefoot she was about even with Anne in her high heels. Anja held out her hand in greeting, which I lifted and bent my head to kiss. I looked her over admiringly. A beautiful face with very blue eyes, and straight, shoulder length blonde hair, so blonde as to almost be white. Her body was fantastic. Her large breasts had a barely noticeable sag to them, a smooth belly, and pleasantly wide hips. I guessed them both to be about forty-five."Mrs. Wilson?"
 
 
 
The waves of pleasure spread through me as her immobile body rode along with my muscles, gulping from exertion. After a few minutes our breaths slowed and synchronized, and I think even our chests started a heartbeat conversation at their own, secret speed. I opened my eyes to find myself in front of her own, and again, the words remained.Elly cupped her chin in her hand and forced Ia to look her in the eye. The catgirl's ears were perky. She was excited. Her eyes were half-lidded with pleasure, and Ia wondered if she was actually orgasming right now."Well," I paused, and thinking that was smooth on my part, here goes nothing, "Because that's my husband.""Oh, I could fuck all night," Kelly said, grinding her pussy onto the bicycle seat. "Especially for you and for $1,000.00" "Yeah, we really do have $1,000.00, don't we," John marveled.
5月 20 用户: DonaldDen (5 分)
0 投票
I crawled over to her and opened my mouth. The cum spilled out in a long thick line directly into Jenna's waiting mouth. Jenna took every drop of it, then closing her mouth swallowed hard and opening it showed me her tongue and the fact her mouth was empty.She turned around briefly, pressed a few buttons until the porn started playing again, and then turned back to me with a smile. Her bright blue eyes were looking up at mine, her big smile full of sparkling white teeth on her face, and her small fingers wrapped around the base of my cock.With a sweet laugh, Cassidy simply closed her other hand over the tip of my dick while somehow still rubbing at that one sensitive spot under my cock head with her thumb. The orgasm seemed to fly up from my feet, shake my legs, and then burn its way through my loins and out of my pulsing member. I arched my back as I came hard, and I could actually hear my cock shooting spurt after spurt of hot cum into Cassidy's cupped hands."Is your pussy still tight?" He whispered to her.
 
 
 
"M-Mistress—" The paintbrush tickled Ia's lips again, and she had to bite her lip hard to keep from being consumed in laughter. "I'll l-love you!" she squealed. "Just please don't... don't...""Well, at least you can admit it," Kelly said, splashing him and then swimming for the bank."Hell, no," Tom replied. "I'd like to see everyone your dad has stepped on be able to get back at him. He's a great guy, he just has no class, and fucking his daughter is a great way to let off steam about that.""That's unsanitary," I said with a laugh.
5月 20 用户: AmberTrart (5 分)
...