Change/Remove the Synchronize symbol
I am trying to either remove the cyan coloured triangle or change it to transparent from my Silverlight viewer (1.8.1) which shows the location and direction of the synchronization with Street View. The reason I want to do this is because I have been having problems with the offset from WGS84 to British National Grid, which is due to datum transformations. I have decided (for the time being) to work around these problems while I investigate them further by disabling Street View opening automatically, and to have Google maps open instead. This way, our users can then select their location in the Geocortex viewer, then Google maps will open and they can drag the Street View symbol to their desired location. This is not ideal, but it least it means that users can have street view in the correct location while I look into the datum transformations.
This works well enough, but the triangle in the Geocortex will still by synchronized to the wrong location. I could disable the synchronize option totally, but I would rather just remove the triangle. This way, when the users are moving around in street view they will still be synchronized to the approximate location in Geocortex. I have looked in all the image folders I know of to see if this is in there, as well as checking the html files and the code within the Look and Feel/Theme. Is there any way to change this, and if so, how would this be done?
Aled
-
Hi Aled,
I don't see any configuration options to disable that triangle, but I did notice that it only shows up when using street view. This leads me to believe that you can hide the triangle by not passing back details specific to street view.
In {WWWROOT}/SilverlightViewer_1_8/WMI/GoogleMaps.html, search for "streetView.getPov()" and try commenting out the lines that set viewpoint heading and pitch. This will not carry over if you upgrade to a later version of the Silverlight Viewer, so I would check back to see if a more formalized solution is added later.
0 -
Hi Aled,
There is a command specifically for that called "RemoveViewpointIndicator" which will remove that indicator. So you could use a workflow or some custom code to make that call.
On a not very unrelated note, did my comment in the thread related to British National Grid (https://support.geocortex.com/SupportForums/Thread.aspx?thread=52428&mid=2&pageid=0&ItemID=2) helped you?
Was changing the GeometryService effective?
Cheers
0 -
Hi Paul and Dan,
Thanks for the quick reply. Paul - removing the viewpoint.heading and viewpoint.pitch from the streetView.getPov did the trick, thank you for that.
Dan - As I was only after a temporary change, I think the removing of the html code suited my needs better. Refering to the British National Grid thread, changing the GeometryService only worked to an extent. It is now offset by about 70 metres, as opposed to 120 metres - so there is progress! The other information in the thread will take me a while to digest, as the topics discussed are not really my strong point. That is why I asked about this quick fix, so that it can be used by our users while I experiment with the other information in the thread to resolve the issue.
Thanks for the help,
Aled
0
Please sign in to leave a comment.
Comments
3 comments