06-26-2018 02:58 AM
I am new to the Smart M.App software so please forgive me if this is a simple question. I'm currently working on the feature analyser and my m.app displays points being pulled from a SQL server.
The marker for all of these points are displayed in a colour based on the theme as shown above. However, I want each marker to be presented as an icon, filled with their corrosponding theme colour. I have added an svg file I want to use to the external graphic section of my point symbolizer in the styleset, yet the markers are still showing as above. In the Studio, should I create a basic map view - as opposed to an analyser view - the points are presented as this icon. Therefore I am wondering is there a setting within the feature analyser that can do this, or am I missing something?
06-26-2018 03:51 AM
Through the configuration of Analyzer View it is not possible to use external graphic as pin marker. The cluster marker color and size can be altered on the Cluster tab found within the Color tab of configuration.
For the icon to change it can be investigated using the underlying Leaflet object. This was also mentioned here
06-27-2018 07:33 AM
Thank you for your response.
"For the icon to change it can be investigated using the underlying Leaflet object." - Could you possibly expand on this at all? Where might I have the ability to manipulate Leaflet objects? Is this possible through the Feature Analyzer?
I tried to do this in the Customization section of the M.App Editor, however the ability to write custom scripts - - is disabled once an Analyzer View has been chosen (see screenshot below).
Apologies for this, as I mentioned I am completely new to M.App Enterprise.
06-27-2018 12:16 PM
Unfortunately I haven't manipulated the Leaflet Objects at all so I can't provide an example. A quick Google search will lead you to various documentation on that though.
To add custom code to Analyzer you will need two panels, one for customization and one with Analyzer View. Within the custom panel there will need to include code to hide the custom panel (assuming you dont wish to see it). An example of that code and some other code snippets that may be useful to you can be found in this previous post.