How do I go to street view in Google Earth Pro without using the pegman - google-earth

I put a place marker onto google earth but I want to be able to skip the step of having to put the pegman there in order to go to street view.
I'd like to be able to just double click my marker and then be taken into street view from there. Thank you in advance!

You can do this by saving the desired view for your Placemark.
First create your placemark, then use the Pegman tool to fly in to StreetView and set your desired view (location, view direction, etc.). Next, find your placemark in the list view (in the Places panel on the left), right-click the placemark, and select "Snapshot View". Now, the current view is saved as the default view for the placemark.
You can test it by flying out of street view to some other location, then double-click your placemark (on the map or in the Places panel), and it should fly you directly back to your saved view in Street View.

Related

Preserving (and loading) table view scroll position for each data source

I am trying to replicate Mail.app behaviours in my app. If you have multiple e-mail accounts and select a random e-mail for each account and switch between each account from the sidebar, the app remembers your scroll position and which e-mail you selected and display them accordingly. That is what I want in my app.
I know how to preserve the row selection, that is easy. tableView.selectedRowIndexes
My tableView has multiple data sources and switches (tableView.reloadData()) accordingly from the sidebar.
I am having a major problem with the scroll position. I tried looking into NSScrollView, NSClipView and NSTableView. It seems to me that there are scrolling mechanism for each view.
I need to remember the scroll position when the user scroll for each data source
I need to load the previous scroll position when the user return to the data source
Also a strange behaviour I noticed is when reloading tableView to a different data source, it seems to persistently remember from the previous data source scroll position. Is that normal? I assumed it would reset to the top.
My data sources are arrays which are my NSViewController subclass properties.
If it matters, I am using storyboard, my app is targeting Big Sur and I am using Swift.
The position to save:
preservedPosition = tableView.visibleRect.origin
Restore:
tableView.scroll(preservedPosition)

How to open an agent' view area on startup?

how can I open an agent specific view area when enter in some agent during model execution? Alternatively setup a specific zoom level that will contains all the blocks?
Either you use the "onStartup" code field for Main using myViewArea.navigateTo(). You can set zoom levels in the view-area properties.
If you want to set a specific agent's view, you should do that in the button that navigates to that agent, using the code above (i.e. the default AnyLogic view controls at the top of your sim window will always take you to the 0,0-position).
PS: Some more useful info in my blog post on view areas.

Get Address when click on map view

I am making an application for iphone. In that i want to add event like as when user click on map then that address save in text field of view. I have am showing map in view and user zoom in map and click on any location.When click on map then i want use that location. I want to save that location in string or text field. Can u tell me any api which provide this facility?
So can you tell me how can i do that?
Read this Location awareness and come back if you still need help.

How in Interface Builder can you select a rectangular group of items when they're on top of a background item?

I've had this problem several times now, and never found a satisfactory solution: If I want to move a group of items with a view all together in Interface Builder, and these items are all on top of a larger background item, I can't put a selection rectangle around the items in the view because any click and drag in the view initiates a move of the background item. In other words, every pixel in the area I'm interested in (and nearby) has a "hand" mouse pointer, no "arrow" pointer is available so I can't drag out a rectangle selection box.
cmd-clicking individual items to build up the group only works when they are separate, and only when there are a few of them. Sometimes I want to select a "pile" of items all on top of each other.
Is there some way to "select for moving" by clicking in the .xib item list? Double clicking a single item selects it for moving in the view, but I have't found a way to add to the "select for moving" selection this way.
So far the best way I've found is temporarily moving the background out of the way and then putting it back but this is unsatisfactory, and wouldn't work with a more complex background arrangement.
How have others done this?
I know what you mean, and I have found a slightly better solution: go to the list view and...
drag either the background view or your custom view up to the root hierarchy level (adjacent to File's Owner)
double click on your custom view and edit away using drag-box-selection
when finished, drag the view back into its original hierarchy position
The key here is that the GUI editor only edits one root object at a time, so moving the background vs. 'foreground' views into separate root objects allows you to edit them separately. Woo!
This is my solution to this problem: Select the background images/object that you don't want to move and set its width to 1 and then, after a comfortable layout editing, restore its original width. This works for me.
Use the left hand side list view and multi-select a range by clicking on the first item in the range then shift-click on the last item. Use ctrl-click to unselect some items if necessary. As items are selected they will also show as being selected in the interface view on the right.
Once have set up all the selected items, cmd-click on the selected items in the right hand side interface view and drag.
In the list of objects, cmd+click each one you want to select them all. In the interface hold command and click and drag the stack of items. Drag them to where you want them and release cmd. If you don't release the button they will rubber band back to their original position.

iPhone Application UI Implementation Suggestion

I am building an iPhone app, which will function similarly to many restaurant finder applications. When launched, the application will start with a view that allows a user to specify a zip code for performing a search. Alternatively, if the user has an iPhone with a GPS, the application will automatically perform a search based on their current location, although it will be possible for the user to specify their own location.
After the search has been performed, the user will be presented with a tab bar view, which displays a list of all results, or a map view, containing all of the results within a specified range. Finally, there will be a details view, which gives the user detailed information about any one particular result from the list or map.
The application should flow as follows:
Search -> (list | map) -> details
I'm very new to iPhone development, so I'd appreciate some feedback on how to put together the interface.
What I'm thinking is I could use a navigation view controller for the opening search view. When the user clicks the "Search" button, the app will switch views to a view containing a tab bar controller (one tab for the list and another for the map). Both the list and map views will be placed inside yet another navigation view, which will allow the user to switch to the details view when the user attempts to drill down into the details view.
Does my solution to the problem sound feasible? Is there an alternative way I should consider?
I wouldn't use a tab bar for switching between the map and the list. They basically display the same data, just in a different way. This is usually done with a segmented control in the title bar.
Use one UINavigationController to switch between the 3 main views (Search > (list | map) > details).
Within the (list | map) view, use a UISegmentedControl to switch between viewing modes.
When in the details view, users can go back to the search results by using the back button.
Two mockups I came up with quickly:
alt text http://img340.imageshack.us/img340/8913/uimockup.png alt text http://img219.imageshack.us/img219/9553/uimockup2.png