Giter VIP home page Giter VIP logo

deprecated-mapbox-ios-sdk's Introduction

deprecated-mapbox-ios-sdk's People

Contributors

amjaliks avatar amnesic avatar baldmountain avatar bradtheappguy avatar btknorr avatar chh51 avatar colinator avatar davidgoli avatar friedbunny avatar halmueller avatar hasseily avatar hjon avatar ilmarion avatar incanus avatar jfujita avatar josephg avatar kennygrant avatar michaeltyson avatar mrzoidberg avatar obrand69 avatar pbridger avatar pwnb0t avatar quazie avatar ryancopley avatar slainger avatar taylortrimble avatar tracyharton avatar trasch avatar twbell avatar vyskocil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deprecated-mapbox-ios-sdk's Issues

Unused variables in RMMapView.m

Minor issue:

topRight at the bottom of zoomWithLatitudeLongitudeBoundsSouthWest is flagged (twice) as unused in Xcode 4 (even though it's used in a log message.) It's kind of annoying to get warnings on each build.

The map tries to load different tiles on device and on the simulator

I am printing the requested tile, and I can clearly see that the map is asking for different tiles when run on the device and the simulator:

The pattern is: zoomLevel_x_y

Simulator:

2012-05-17 20:07:51.189 Metro[1078:1b703] Image: 13_5120_831
2012-05-17 20:07:51.189 Metro[1078:1a503] Image: 13_1840_4546
2012-05-17 20:07:51.212 Metro[1078:1b703] Image: 13_1840_4546
2012-05-17 20:07:51.247 Metro[1078:1a503] Image: 13_1839_4546
2012-05-17 20:07:51.299 Metro[1078:1b703] Image: 13_1840_4547
2012-05-17 20:07:51.316 Metro[1078:1a503] Image: 13_1840_4547
2012-05-17 20:07:51.351 Metro[1078:1b703] Image: 13_1839_4547
2012-05-17 20:07:51.386 Metro[1078:1a503] Image: 13_1839_4547

Device:

2012-05-17 20:08:44.751 Metro[5652:3703] Image: 13_5120_831
2012-05-17 20:08:44.752 Metro[5652:1903] Image: 13_5119_831
2012-05-17 20:08:44.851 Metro[5652:1903] Image: 13_5120_831
2012-05-17 20:08:44.852 Metro[5652:3703] Image: 13_5120_832
2012-05-17 20:08:44.865 Metro[5652:1903] Image: 13_5120_832
2012-05-17 20:08:44.869 Metro[5652:3703] Image: 13_5119_832

This is a really big problem because the tiles needed on the dive do not exist on the database, so it appears as an empty gray map.

What do you guys think the problem is?

Need instructions for `Add marker to map`

I've had a pretty solid look at RMMarker.h, RMAnnotation.h, and RMOverlayView.h and still cannot figure out how to simply add a marker to a mapview.

I've also been poking around in Xcode with trial and error with no success.

A few lines of code as an example would go a long way here.

Compass tracking issues

  1. The rotation of the map is wrong for anything other than portrait orientation. (It's out by the number of degrees the device has been physically rotated.)
  2. Changing the orientation of the view while compass tracking correctly keeps the confidence circle centered, but the blue dot is not re-centered (screenshot: https://dl.dropbox.com/u/44154592/compassRotating.png)
  3. The blue dot doesn't change to use the compass tracking graphic used in Maps.
  4. Less important, but the rotation is very jerky compared to Maps.

add callout capability to markers

It would be nice to have something like MKPinAnnotationView with a canShowCallout property that automatically manages display and behavior of a callout similar to MapKit.

make accuracy circle bounce

Over in #5 we've got location services, but the accuracy circle just changes size instantly when homing in. It should bounce like MapKit's.

zoom constraint are not working

Hi
I am facing an issue while trying to set up a max/min zoom constraint in a RMMapView instance for a .mbtiles file with limited bounds and zoom range 10-19. When I zoom out with a pinch gesture, the scrollview doesn't block the zoom and the map completely disappear, when I zoom in the NSAssert in RMMBTilesSource - imageForTile:inCache: method is thrown.

The map is setup following the sample code:

    RMMapView *lMapView = [[RMMapView alloc] initWithFrame: self.view.bounds                                
                                             andTilesource: tilesSource
                                          centerCoordinate: startCoordinates
                                                 zoomLevel: (tilesSource.maxZoom+tilesSource.minZoom) / 2.0
                                              maxZoomLevel: tilesSource.maxZoom
                                              minZoomLevel: tilesSource.minZoom
                                           backgroundImage: nil];

markers should rotate with map

When in user tracking mode, the markers should rotate opposite the map. Something like CGAffineTransformInvert() should help here.

Exception raises when mbtiles file is not in the main bundle

RMMBTilesSource: there is an issue when .mbtiles file is not in the app's main bundle: FMDatabaseQueue will throw an exception: "Could not create database queue for path map.mbtiles".

I fixed this just modifying RMMBTilesSource.m:

queue = [[FMDatabaseQueue databaseQueueWithPath:[tileSetURL relativePath]] retain];

with:

queue = [[FMDatabaseQueue databaseQueueWithPath:[tileSetURL path]] retain];

add zoom convenience method

We can animated zoom to a point, or animate zoom to a SW/NE bounds, but we can't easily animate zoom to a center point with a certain zoom level applied. Right now, we are calculating zoom meters manually and using the SW/NE zoom as a hack. This should be native.

don't disable user tracking during zooming

MapKit doesn't turn off user tracking (with user at center of view) unless one of two conditions are met:

  1. Map is panned.
  2. Map is zoomed out below ~z3.

Currently we turn it off upon either pan or zoom.

MBTilesDemo: 'RMMBTilesTileSource.h' file not found

When trying to run the MBTilesDemo sample project, I come across failures for both of these imports:

#import "RMMBTilesTileSource.h"
#import "RMTileStreamSource.h"

I can't find either of the header files in the Map project. When running git blame, it looks like @Alpstein added these lines two months ago?

Any thoughts?

Thanks.

Retina display and maximum zoom available

Hi,
I may have noticed an issue with retina display not addressed in the list: I am using an offline tile source (.mbtile) with range 14-18. On an iPhone3GS the map correctly zoom to level 18, while on iPhone4 and iPad2 (with Retina Display) the same app with the same db reaches a maximum map zoom of 17 (so that tiles are stretched by scrollview and get jagged).
This is related with 'adjustTilesForRetinaDisplay' flag: when set, the max map zoom level is never used (wasting disk space on the mobile)

map zooming/movement disabled when gesture starts on RMMarker

I have maps with several markers created like this

marker = [[RMMarker alloc] initWithUIImage:[UIImage imageNamed:@"icon.png"] anchorPoint:annotation.anchorPoint];

markers somehow consumes the touch gestures, so i cannot move or zoom the map when starting the gesture at marker location.

example app

Need an example app that shows:

  • RMMapBoxSource backend
  • RMMBTilesTileSource backend
  • interactivity

All in one app. We currently have three sample apps for MapBox stuff on Route-Me core.

RMPath flickers when scrolling

I created a very simple map of the US with the following layers:

10mlakesnorthamerica
10mroads
10madmin1statesprovi
countries

I then used RMPath to draw a couple of lines like this:

CLLocationCoordinate2D KRDU = { 35.8776389, -78.7874722 };
CLLocationCoordinate2D KSFO = { 37.6190, -122.3749};

CLLocationCoordinate2D start = KRDU;
CLLocationCoordinate2D end = KSFO;

RMPath *path = [[RMPath alloc] initWithView:mapView];
[path setDrawingMode:kCGPathStroke];
[path moveToCoordinate:start];
[path addLineToCoordinate:GetHaversineMidpoint(start, end)];
[path addLineToCoordinate:end];

When I scroll (and apparently specifically when new tiles are shown), the line jumps around quite a bit. It's most noticeable when scrolling left and right. I've seen this in the simulator; I haven't tried on device yet.

add optional network activity indicator

If we want to behave like MapKit, we could automatically manage the network activity indicator for tile loads. However, some users might not want this, so we might want to provide a BOOL to turn it on or off. This will probably wrap the tile load begin/end notifications anyway, so we could provide an abstracted way to access this for folks who are already managing the indicator somehow.

enhancements for multi-touch and multi-tap

Any way we could get these added in?
route-me/route-me#128

I am currently trying to get some markers from a server AFTER a user zooms in using a pinch gesture, the afterMapZoom which currently exists is called several times instead of once. Causes us a real issue as it hammers the server.

Please let me know if I can help in any way.

userTrackingMode

Setting the userTrackingMode without a data connection crashes the app.

showsUserLocation = NO

Setting showsUserLocation to NO, after it's previously been YES crashes.

i.e.

mapView.showsUserLocation = YES;
mapView.showsUserLocation = NO;

The crash is when it's releasing all the related annotations. One of them has already been released.

setting constraints (and spotted a small typo)

I've been trying to set boundary constraints using the following code inside the OnlineLayerViewController:

// Iceland constrains example
CLLocationCoordinate2D NEBound;
NEBound.latitude = 66.34;
NEBound.longitude = -23.7;
CLLocationCoordinate2D SWBound;
SWBound.latitude = 63.69;
SWBound.longitude = -14.7;

[mapView setConstraintsSouthWest:SWBound northEeast:NEBound]; // typo: northEeast

For some reason the maps locks over an area in Austria, and doesn't allow scrolling. Any ideas?

I've noticed that RMMapView.m has been updated more recently in the mapbox-ios-sdk than the route-me version (which uses a different signature for constraints - setConstraintsSW), so I wasn't sure which one was more up-to-date.

convert tile backends to TileJSON

Tile backends like MapQuest should be moved over to TileJSON for ease of maintainability. Just bundle TileJSON with the app. One downside here is resources like .json files that come with the SDK have to be manually copied into the app project, since the library is standalone. However, this needs to happen for things like #5 user location tracking as well for the tracking images.

/cc @willwhite

fix two-finger single-tap zoom out

Don't remember the specifics from Alpstein, but the fact that a two-finger double-tap works causes a slight delay with a two-finger single-tap while it waits for the gesture to fail.

Add support for simplestyle markers

Just putting a line in the sand that we want to support simplestyle markers as native points on the iPad.

This means:

  1. Adding support for reading the URL from the new data key from the TileJSON and fetching the GeoJSON.
  2. Parsing the GeoJSON and drawing icons according to the simplestyle-spec

zoom changes centerCoordinate

When restoring both a zoom and a centerCoordinate, you need to set the zoom first or else the map center will be off afterwards.

Marker draw order

Should the markers be drawn in latitude order, so that they are positioned correctly?

See this screenshot for what I mean:

http://dl.dropbox.com/u/44154592/markerDrawOrder.png

I'm not sure how this would work in orientation (compass) mode in the Location branch, layer positioning would need to update as the map rotates maybe? :-/

Issue with the new tracking feature in release branch

Location tracking (with userTrackingMode set to RMUserTrackingModeFollowWithHeading) is acting weird with my configuration.
Tracking is wrong by 90°, and annotation layer don't rotate following compass heding. Furthermore, sometime gps accuracy circle is not centered with gps user position (actually, it slides away to another location of the map).

Are they known issues?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.