use map offline from local file or use bing map without internet

1 Answer 611 Views
TileLayout
Liad
Top achievements
Rank 1
Liad asked on 20 May 2021, 11:46 AM

Hello,

I bought kendo UI ASP.NET Core and i using it in my asp net core project.

i want to use kendo ui map in my project and i use tile layer like this

 

 layers: [{
                            type: "bing", // this layer is the map  , layer[0]
                            imagerySet: "aerialWithLabels",

                            key: "h0yO0NtadB4lkxJAaBhO~9ZxiGd8wv3tE3MGtwDCVaQ~AvJmJR3vegm0gJw6grYJ2OnnVtgMio1FeEMb4mMBKU2qmxvtIZxx7Hl-rAasXWSH"
                        }

 

the key is my key from microsoft bing map.

 

my question:

i want to use the map without internet connection . i have rastar map on local file in my computer and i want to use this map or bing map offline without internet

 

is it possible? and how can i do this? i try many guide in the site and i just cant understand what is wrong.

Liad
Top achievements
Rank 1
commented on 20 May 2021, 11:48 AM

i prefer use bing map offline but if its impossible i have rastar map on local folder in my computer that i want to use

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 25 May 2021, 07:25 AM

Hi, Liad,

Indeed, the bing layer of the Telerik UI Map for ASP.NET Core performs internally an AJAX request in order to get the tiles and load them inside the widget. This operation could not happen offline.

The option that you have for offline map rendering is to make use of the GeoJSON option. The Geo JSON should be seeded via a request that could get it from a local file in your system.

https://demos.telerik.com/aspnet-core/map/geojson

I hope you find this helpful.

 

Kind regards,
Tsvetomir
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Pascal
Top achievements
Rank 1
Iron
Iron
commented on 29 Nov 2022, 06:24 PM

@Liad I recommend that you reset your Microsoft Bing map key. Generally, keys should not be included when posting your code. 
Tags
TileLayout
Asked by
Liad
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Share this question
or