just you can add vertex on rollover and can remove vertex on rollout. you will get vertexes of polyline by using getVertexCount. and make a loop for all vertexes. use getVertex(index) will give you the latlng value. at that location you can add any sprite or anything and redraw the object.
you will get vertexes of polygon by using getOuterVertexCount. and make a loop for all vertexes. use getOuterVertex(index) will give you the latlng value. at that location you can add any sprite or anything and redraw the object. On Thu, Aug 26, 2010 at 3:55 AM, Jonathan Wagner <[email protected]>wrote: > I actually have my own complete renderer. However, it would be > possible to do it with a Polyline it would require removing it and > then re-adding it when points change. Alternatively you could > potentially use a temporary sprite before committing to a polyline. > > Jonathan > > On Aug 25, 5:23 pm, The uncanny valley <[email protected]> wrote: > > After looking at those methods and your app a little more, I'm left > > with just a few questions. Are you even using a polyline, or are you > > using some sort of sprite then using viewporttolatlng to convert the > > points into latlngs? > > > > On Aug 25, 12:00 pm, The uncanny valley <[email protected]> wrote: > > > > > > > > > At least now I know it's possible. I checked out your site, your > > > implementing a lot of the same stuff I'm trying to do as well. This is > > > my first foray into any sort of GIS so I haven't scoured through the > > > API reference completely. I'll look into what your suggesting and see > > > how "easy" it is (for me anyway). > > > > > On Aug 25, 11:16 am, Jonathan Wagner <[email protected]> wrote: > > > > > > There is no native support for this in the flash api, it is not too > > > > difficult to build however. The two main functions to make it a > > > > reality are Map.fromLatLngtoViewport and Map.fromViewportToLatLng. > You > > > > can then use whatever graphical nodes you want for the editing and > use > > > > those two functions to accomplish the translation. > > > > > > Jonathan > > > > ScribbleMaps.com > > > > > > On Aug 24, 10:02 am, The uncanny valley <[email protected]> wrote: > > > > > > > Does the Flash API contain anything natively that can be used to > edit > > > > > a polyline after you've drawn it on the map? I've seen that the JS > API > > > > > contains methods that allow you to add/remove vertices and so on, > but > > > > > the flash API does not. Are there plans to add this functionality > in > > > > > future releases? If not, then has anyone creadted an editable > polyline > > > > > with the Flash API? > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API For Flash" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-api-for-flash%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api-for-flash?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en.
