Hi,
I would like to add a icon on map layer and move the icon on the map layer dynamically using mouse. Can somebody tell me how to achieve this ?
Thanks
Hi,
I would like to add a icon on map layer and move the icon on the map layer dynamically using mouse. Can somebody tell me how to achieve this ?
Thanks
I think that you would need EditInteractiveOverlay for plotting and then dragging the point represented by an icon, if I understand you well. I suggest you look at the sample Dragged Point Style.
code.thinkgeo.com/projects/s...pointstyle
In this sample, you can drag a vertex of a line and you can set the symbol of your choice. I would use this sample as an inspiration for your specific case. If you need more help, let us know and we will show you the exact code to do what you are trying to accomplish.
Thank you for your response. I studied that sample.
My exact need is
1) Say for example two icon "car.jpg" and "bus.jpg". I should be able to drag drop those icons anywhere on map
2) User should be able to move these icons to suitable place by using mouse
Ok. Now I understand exactely your needs. We will publish shortly a sample in the Code Community showing how to do that. I will let you know once it is published. Thanks.
Please, check ou the new project in the Code Community Dragging Icon. I think it responds to most of your needs.
code.thinkgeo.com/projects/show/draggingicon
Thanks a lot. This is what I exactly needed.
You are welcome and do not hesitate to check regularly the Code Community. Almost daily, a new project is added.