On 2021-05-24 5:56 pm, [email protected] wrote:
Some questions the docs and playing could not resolve about the map
viewer:
Are these expected behaviours - and if so why?
1) centering on a selected element only works if the element is
already visible and you click on it in the map
No this should always work. I just tried with the Geography Taxonomy,
e.g. clicking on Armenia from the default view in Europe. It "went
there". Are you not seeing this behavior?
2) centering doesnt work for polygon features
Correct, only for points.
3) there is no way to clear features off the map
You can filter by class using the provided button. But that's about it.
also - there are controls to enable mapping, rebuild the index and add
the map panel
- is there a way to do all these programmatically to set this up in a
single step?
Partially. You may need to fiddle with how all these individual features
are implemented under the hood, but based on painful past experiences
this may be taking it too far. You can manually define a default Layout
perspective for all users per server. To rebuild the index, simulate the
server request that the corresponding button does. To enable mapping,
call the service that the corresponding button does. And don't forget to
inject the Google API key into the config graph (which you can see in
TBC's dynamic/config.ttl file).
- is there any option to inject other logic into map display - as in:
a) adding in images from other sources such as WMS
No. You can only control the attributes defined in tbgeo.shapes.ttl,
e.g. fillColor, strokeWeight etc. You can use Google Maps symbols for
special icons, but no custom images.
b) turning on and off sets of data from other asset collections
No.
Finally - is there a developer option to use an alternative map view
such as Cesium (https://cesium.com/platform/cesiumjs/) capable of 3D
views?
That sounds like a completely new feature. We have only implemented
against the Google Maps API.
Holger
--
You received this message because you are subscribed to the Google Groups "TopBraid
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/f4cb57dc-f3d0-8672-8a18-3a6ceed4862c%40topquadrant.com.