Geobounds Displaying Floorplans

4 posts, 0 answers
  1. Dietmar
    Dietmar avatar
    6 posts
    Member since:
    Dec 2017

    Posted 31 Jan Link to this post

    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

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    3082 posts

    Posted 05 Feb Link to this post

    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.
  3. Dietmar
    Dietmar avatar
    6 posts
    Member since:
    Dec 2017

    Posted 02 Apr in reply to Petar Mladenov Link to this post

    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!

     

  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    3082 posts

    Posted 04 Apr Link to this post

    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.
Back to Top