This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ScriptObjectLoader { | |
| public static ScriptEngineManager scriptEngineManager; | |
| public static ScriptEngine engine; | |
| static { | |
| scriptEngineManager = new ScriptEngineManager(); | |
| engine = scriptEngineManager.getEngineByName("JavaScript"); //Or whatever | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)mapView:(MKMapView *)mv didAddAnnotationViews:(NSArray *)views { | |
| for(MKAnnotationView *annotationView in views) { | |
| if(annotationView.annotation == mv.userLocation) { | |
| MKCoordinateRegion region; | |
| MKCoordinateSpan span; | |
| span.latitudeDelta=0.05; | |
| span.longitudeDelta=0.05; | |
| CLLocationCoordinate2D location=mv.userLocation.coordinate; |
NewerOlder