Mapview - a few questions.

Hi !

A few questions regarding Mapview.

- Is or will "Route" be supported ?

- Is "3D" view supported ?

- Is it possible to draw a line from annotation A to annotation B ?

- Sometimes when i place several annotations on a map, it looks
like the shadow is somewhat off at placing the annotations, which
looks weird.

Is that a bug ?

Cheers !

Paul

Hi, 


- A Route functionality would be to draw lines, polygons where the user is located. In one of the next versions we will allow drawing of lines / polygons, etc... So routing would be an implementation of the user with the OnDidUpdateUserLocation event.

- It seems that 3D is not a feature of the MapView, in fact they are applying a special technique on their maps to enable 3D, I have experimented by applying a transform, but the map does no longer repond to touch.

- Related to the first question, currently no, but in the future this should be possible.

- Can you post a screenshot of your application? Did you test on a real device and verify if the bug is still there?

Kind Regards, 
Pieter

Pieter Scheldeman2013-07-03 08:34:36

Hi Pieter,

Thanks for the answers.

Routing would be real nice to have.

For the shadow :

It only occurs when "annotation drops" (Animated), once the annotation is dropped on the
map everything is fine.

Will try to make a small video regarding this.

Cheers.

Paul

Hi Pieter,

Forgot to tell you that i'm only using a real device (Ipad 3) when testing,
never the simulator.

Cheers.

That is actually a very good practice despite the slow deployment.

For the drop animation, does the pin shadow drop from above?

Hi Pieter,

A small movie regarding the shadow.

http://youtu.be/9zpCGjtHu1w

The shadow looks a few centimeters to the right of the annotation when dropped.

Cheers.

Paul

Can you post the code that adds the annotation?


Kind Regards, 
Pieter

Hi Pieter,

It also occurs when placing one annotation to the map, this is
the code i use :

             imapx.RemoveAllAnnotations;
              imapx.BeginUpdate;

              with imapx.Annotations.Add do
              begin
                Title := ComboEdit3.Text;
                SubTitle := detail;
                lat := StrToFloat(alat);
                lon := StrToFloat(alon);
                lc.Latitude := lat;
                lc.Longitude := lon;
                Location := lc;
                PinColor := TTMSFMXNativeMKPinAnnotationColor(Random(3));
                AnimatesDrop := True;
                b := TTMSFMXNativeUIButton.Create(Self);
                b.Width := 32;
                b.Height := 32;
                b.Style := bsButtonTypeDetailDisclosure;
                RightCalloutAccessoryView := b;
              end;

              rgn.Center.Latitude := lat;
              rgn.Center.Longitude := lon;

              rgn.Span.latitudeDelta := 0.005;
              rgn.Span.longitudeDelta := 0.005;

              iMapx.SetRegion(rgn, True);

              imapx.EndUpdate;

Cheers,

Paul

Hi, 


Can you try by setting the EndUpdate before the setRegion?

Kind Regards, 
Pieter