ThinkGeo.com    |     Documentation    |     Premium Support

Highlight Feature of SilverlightMapConnector Layer


        
  • We only have have server side layers. 

  •     
  • We do not include ShapeFiles in our Xap package. 

  •     
  • We need to highlight points and lines on the map


How can this be achieved?


The sample "HighLightAFeatureOnTheMap.xaml" seems to highlight features in the State layer which is rendered on the client side. How can we highlight features which have been rendered on the server side?


I realise that we have to add an InMemoryFeatureLayer but how can we get the feature to be added to the in the InMemoryFeatureLayer?


Am I right in saying that this is not possible because the features are relegated to the server side and can not be obtained on the client? Is this a case where the Feature itself would hypothetically be requested from the client to the server and the server would have to return the feature over WCF or something similar?


 



Christian,



I prefer using get features from server side and draw it on the on client side. 



Here is a sample for you to click to highlight; I create a new data contract object for communication in this sample. Hope it helps.



Thanks,

Howard



1142-QueryFeatures.zip (27.7 KB)