Markers move while zooming

33 views
Skip to first unread message

Ariel Camus Villalobos

unread,
Dec 22, 2011, 2:33:54 PM12/22/11
to route-...@googlegroups.com
I've seen another post with a similar title but it was related to the anchorPoint property of the marker. I've changed the anchorPoint value but the same happens to me:

When I zoom the map pinching or with a double tap, markers are moved to a wrong position. When I move the map they go back to the right position. It's happening just with some markers, not with all of them.

I leave you a link to a video so you can see it better:


Any idea? 

Thanks!

Chilly

unread,
Feb 8, 2012, 1:41:34 AM2/8/12
to route-me
One dodgy solution I have found is to put the line:
[self.mapView moveBy:CGSizeMake(0,0)];

into the mapView delegate method:
- (void) afterMapZoom:(RMMapView *)map byFactor:(float)zoomFactor near:
(CGPoint)center

It jumps after a double tap zoom, but at least the markers end up in
the right place.


On Dec 23 2011, 6:33 am, Ariel Camus Villalobos

Chilly

unread,
Feb 8, 2012, 1:38:14 AM2/8/12
to route-me
I get this problem as well and I have no idea how to fix it, did you
end up solving this problem?

OHTSUKA Ko-hei

unread,
Feb 12, 2012, 12:33:21 AM2/12/12
to route-me
Hello,

I have same problem before.
In these days, I use "addMarker" method both for marker's add and
update.

But, after I use "addMarker" as add and "moveMarker" as update, it
becomes OK.

OHTSUKA Ko-hei

unread,
Feb 11, 2012, 9:03:59 PM2/11/12
to route-...@googlegroups.com
Hello,

I have same problem before.
In these days, I use "addMarker" method both for marker's add and update.

But, after I use "addMarker" as add and "moveMarker" as update, it becomes OK.


2012/2/8 Chilly <cellini...@gmail.com>:


> I get this problem as well and I have no idea how to fix it, did you
> end up solving this problem?
>

> --
> You received this message because you are subscribed to the Google Groups "route-me" group.
> To post to this group, send email to route-...@googlegroups.com.
> To unsubscribe from this group, send email to route-me-map...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/route-me-map?hl=en.
>

Ariel Camus Villalobos

unread,
Feb 14, 2012, 11:44:25 AM2/14/12
to route-...@googlegroups.com
Thank you Chilly, I ended up using your solution. It's not the ideal one but it does the job.

Chilly

unread,
Feb 14, 2012, 5:24:35 PM2/14/12
to route-...@googlegroups.com
I ended up fixing the problem altogether, I had made a mistake in my code where I was adding the exact same marker twice in the same spot.
When I fixed this duplication, the problem fixed itself.

It might be the case when two markers sit in the exact same position (lat, lon), or maybe when the same marker is pushed twice onto the markerManager's array of pins. In any case, check your code when you are adding markers.
Reply all
Reply to author
Forward
0 new messages