Map integration

64 views
Skip to first unread message

robatki...@gmail.com

unread,
May 24, 2021, 3:56:26 AM5/24/21
to TopBraid Suite Users
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
2) centering doesnt work for polygon features
3) there is no way to clear features off the map

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?

- is there any option to inject other logic into map display - as in:
 a) adding in images from other sources such as WMS
 b) turning on and off sets of data from other asset collections 

Finally - is there a developer option to use an alternative map view such as Cesium (https://cesium.com/platform/cesiumjs/) capable of 3D views? 

Holger Knublauch

unread,
May 24, 2021, 6:59:27 PM5/24/21
to topbrai...@googlegroups.com

On 2021-05-24 5:56 pm, robatki...@gmail.com 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


Rob Atkinson

unread,
May 24, 2021, 8:39:43 PM5/24/21
to topbrai...@googlegroups.com
thanks



> 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?

Ok - slight update - if the feature is on the map, and is a point, then clicking on in asset view does centre it, 

but this doesnt work if the feature is 
a) on the map but not in current display window.
b) a new feature not located in current display window.

Latest version of Chrome on Windows 10,

JS console has this warning:

util.js:24 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952



 

Holger Knublauch

unread,
May 24, 2021, 11:01:05 PM5/24/21
to topbrai...@googlegroups.com


On 2021-05-25 10:39 am, Rob Atkinson wrote:
thanks



> 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?

Ok - slight update - if the feature is on the map, and is a point, then clicking on in asset view does centre it, 

but this doesnt work if the feature is 
a) on the map but not in current display window.
b) a new feature not located in current display window.

The latter may be if a resource is not yet added to the GeoSPARQL index. You can trigger a rebuild with

http://localhost:4500/tbl/swp?_viewClass=teamworkconfig:GeoSPARQLIndicesPage

Holger



Latest version of Chrome on Windows 10,

JS console has this warning:

util.js:24 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952



 

--
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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CACfF9Lwu0dQh8FCfyHBfyS8pU9pSY%3DgV8OBF-VfJ1%2BaX9OA0Dw%40mail.gmail.com.

robatki...@gmail.com

unread,
May 25, 2021, 12:12:10 AM5/25/21
to TopBraid Suite Users
I had rebuilt - this doesnt change behaviour.
Reply all
Reply to author
Forward
0 new messages