Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
The scenario is we have to change the images coming in the map dynamically by using using upload widget .
Do you have any idea about this ??
If you are speaking about Google Maps widget, yes you can have different images for the same location which are defined with State Based styling.
Yes I am talking about google Map Widget .But i want to change the Image dynamically by using upload widget to the map after clicking on the button .Carles Coll
Hi Naveen, you can just make the image as a avatar for thing which contains the co-ordinates (i suppose its the case) and can manage changing it through service.
Hi Naveen,
You should look at MarkerFormatting property on the map, there you can define the State Based Formating for markers, and act accordingly.
Carles.
Carles Coll I know about state definition thing I need to change the images in the state definition only..So it will automatically change.Do you have any idea on this?
You just need to return your locations list with a new property called for instance uploading ( true/false ) then you build a State Definition that when true has the image Uploading and when false has the standard image, then you just need to assign this state definition to the property I've mentioned and select the uploading property.
Of course you will need to query the service that returns locations every once in a while ( for instance with the refresh widget ).