Hoppa till huvudinnehållet

Use custom library in mobile designer

Kommentarer

4 kommentarer

  • Jeff Siemens

    Hi Berend,

    In order to implement custom mobile components you MUST write .NET components using the VertiGIS Studio Mobile SDK. Help documentation is here:
    https://developers.vertigisstudio.com/docs/mobile/sdk-overview

    At this point, you are able to use those components in a layout.xml to describe your user interface, or in a Workflow that uses custom activities or custom form elements, or to use custom commands in your app.json. If you want to be able to use those custom components in App Designer to build your user interface, then  yes, you need to write a companion 'mirror' javascript (.js) library that describes the components so that App Designer can understand them well enough to be able to present you the option to add those components to your layout. These 'mirror' components don't need to do anything - they just need to describe their existence so they can become available in App Designer. Without the mirror js library, you can still configure your app by hand using a text editor, but you won't be able to using App Designer.

    I hope that helps.

    Let me know if you have more questions.

    Jeff

    0
  • Berend Veldkamp

    Hi Jeff,

     

    That's more or less what I expected. It would be nice if there was some way to auto-generate the designer library from the .NET source code, though.

     

    One more thing: I also added a service to my JavaScript library, and registered it with registry.registerService(), but don't see it anywhere in Mobile Designer. Are services supported? I'd like to have this, so that I can configure the service from within the designer.

    0
  • Jeff Siemens

    Hi Berend,

    We will take your suggestion to auto-generate the designer library from .NET source under consideration.

    Custom services should be supported in Designer. In order to get it to show up you will need to implement the same DesignerSettings methods that are done for components. You can see an example of how to do that for components here:

    https://github.com/geocortex/vertigis-web-incubator/blob/main/libraries/3d-tools/src/components/ElevationProfile/designer.ts

    Jeff

    0
  • Berend Veldkamp

    Hi Jeff,

    Thanks for this. It looks like this sample uses components only, and I those are working fine. It's services that I can't seem to register properly. Should these show up in the Services tab in the designer?

    0

Du måste logga in om du vill lämna en kommentar.