-
Re: Worldwide Map Customizations
Peter.Cooper Jan 10, 2014 5:41 PM (in response to s-k)We do not support extending our software via javascript, only via the SDK. That said, folks do many interesting things (javascript and/or css) with the knowledge that a future version might break it. Developer to developer: The mapping component intentionally tries to abstract away the internals, which includes leaflet. It is unlikely, but we may need to swap that out some day. That's why it's a convoluted to dig out a reference to leaflet.
var leaflet_mapobj = SW.Core.Volatile.WorldMaps[myMapResourceID].leaflet(); // this is the leaflet map object.
Considering that you're putting in a custom html resource on the same view as the map, you can just hard code that to match the ID in question.
If you do something cool with this information, please procure and upload a screenshot.
-
-
Re: Worldwide Map Customizations
RichardLettsJan 17, 2014 2:09 PM (in response to s-k)
This looks really cool -- and for those of us who support large geographic areas this would be Awesome. Any chance you can provide an upload with this on how to do it?
-
Re: Worldwide Map Customizations
s-k Jan 20, 2014 2:36 PM (in response to RichardLetts)Sure. I'll put together something and have it posted in the next few days.
EDIT: Just posted a tutorial, here.
-
-
-
-
Re: Worldwide Map Customizations
andrew_watson Oct 5, 2015 7:52 PM (in response to s-k)Hi S-k
You've done some great work on this, thanks for sharing. Out of interest have any of you guys noticed lately that the performance on the open weather maps has been quiet bad. I've emailed the support team there and they advise that the issue's are congestion problems on there end and there isn't much we can do about it, however they advised that if you buy a subscription you get access to a different server and there are no performance issues. I asked them how we integrate the subscription in and they advised this
just add &appid=yourAppidHere to your request URLs temples, for example use
‘http://{s}.tile.openweathermap.org/map/snow/{z}/{x}/{y}.png&appid=yourAppidHere’
instead of
‘http://{s}.tile.openweathermap.org/map/snow/{z}/{x}/{y}.png’