This is a migrated thread and some comments may be shown as answers.

Geobounds Displaying Floorplans

3 Answers 144 Views
Map
This is a migrated thread and some comments may be shown as answers.
Dietmar
Top achievements
Rank 1
Dietmar asked on 31 Jan 2019, 03:26 PM

Hi,

I use the Radmap Control for Displaying Floorplans which has no Coordinates.The floorplans are available in Maptiles so I implemented a custom map provider.

https://docs.telerik.com/devtools/wpf/controls/radmap/how-to/howto-custom-provider

The plan will now be displayed but it will be repeated infinitly. How can I prevent that?

best regards

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Feb 2019, 08:20 AM
Hello Dietmar,

I guess your tiles provide X, Y, Z indices ? If not, can you elaborate a bit more on how is your custom map provider organized ? How many tiles do you need to load ? For now I will list some suggestions but I am not sure which of them are applicable in your scenario:

- for some out-of-scope incidec you can return NULL in the GetTile method
        - for zoom and pan restricting you can follow the this help article: https://docs.telerik.com/devtools/wpf/controls/radmap/how-to/howto-limit-panning-zooming-region

Generally, floor plan should be given in .shp file. Have you considered converting your data to .shp file with some tool ?

Regards,
Petar Mladenov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dietmar
Top achievements
Rank 1
answered on 02 Apr 2019, 07:51 AM

Hi Petar,

thank you for your reply and sorry for my late reply to that. You're right the tiles are provided in x,y,z pixel coordinates.

The number of loaded tiles depend on the size of the viewport (it can spread across multiple monitors). The base maps can have resolutions of 11000 * 11000 pixel.

I also need to know which coordinates (TopLeft, BottomRight) are currently visible in the viewport, to load the "markers".

In most cases the floorplans are provided in png or jpg files, so I think its hard to create an shp file from it.

Now I also need to diplay the floorplans in an asp.net core mvc, razor components or blazor webapp.

Any ideas how to archieve that?

Best regards!

 

0
Accepted
Petar Mladenov
Telerik team
answered on 04 Apr 2019, 03:14 PM
Hi Dietmar,

What do you call markers exactly, are they some sort of labels ? To be honest there is no public API you can use to access the MapTiles in code or detect their locations. Actually they do not have locations, they have relative positions (X, Y). That is why floor plans are generally well suited for shape files - each object from the plan corresponds to UI presentation object - for example Path or Shape which you can detect and attach events / tooltips etc.

For web - related map questions, please send a separate support ticket / forum post with product RadMap for ASP.Net. 


Regards,
Petar Mladenov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Map
Asked by
Dietmar
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Dietmar
Top achievements
Rank 1
Share this question
or