justinmanley/Leaflet.Illustrate

locking vectors to map locations

Closed this issue · 3 comments

Not sure if this is a bug or unimplemented feature, but thought I'd start putting in issues now that the code is demoable.

I'm using Firefox 30 on Mac OS 10.9.4 and vectors don't seem to be locked to the map:

screen shot 2014-07-29 at 12 05 58 pm

screen shot 2014-07-29 at 12 05 53 pm

Nope, not a bug - this is the desired functionality (took me a lot of work to get it that way!).

You'll notice that the shape you've drawn maintains constant pixel size with only one endpoint fixed to the map. The L.Illustrate.Pointer class is just meant to link annotations to points on the map - see the research note I posted earlier.

What you were looking for/expecting with your drawing above was a standard polyline like L.Polyline.

I guess I was confused by the feature set-- I didn't realize you were ONLY demoing the pointer functionality. I see the use of the pointers for rich annotations, but thought that we were going to mostly be locking text/vectors (L.Polyline) to the map scale by default.

The demo just includes pointer and textbox functionality. Polyline, polygon, marker annotation, etc. is already part of Leaflet.draw, so I didn't feel that there was any need to demo it (I didn't add anything to those functionalities).

I agree with you that we will mostly be working with features like L.Polyline, L.Rectangle, etc. which are locked to the map scale.