I have 3 tab first tab is PORT TO PORT which is default map you can see with 9 maker. The function is Norway to Vietnam (example) click on Button show routes, will display the route 1 & route 2 (which is all hard code).
Click on the second tab POINT TO PORT i want map show 4 maker only. The function key in FROM the Latitude & Longtitude To example Singapore, it will showing the route 1 & route 2 (similar with tab 1 function).
Lastly, click on the third tab VESSEL TO PORT i want map show 6 maker only. The function will (similar like tab 1).
I only want use one id #map for all the 3 tab.
Project link
http://fiddle.jshell.net/36twhxux/66/
Any solution or idea is welcome.
Thanks
Related
I am developing a warehouse management application using Maui.
At the moment, I am using the GoToAsync method to navigate between pages, however, I have encountered a problem.
The structure of my pages:
Main menu with several buttons, select the first one:
Location ->
search location ->(after scanning the code)
3.List of products on the location ->(after selecting the product)
4.List with operations to perform (each one displays a different page) -> select the first one
5.Move the product to another location
etc.
Depending on the button selected in point 4, a different number of pages can be put on the stack, for example, after selecting the operation in point 5, 3 or 4 or 5 more pages can be put on the stack.
This is how I register my pages:
Routing.RegisterRoute(nameof(MenuPage), typeof(MenuPage)); Routing.RegisterRoute(nameof(ProductSearchPage), typeof(ProductSearchPage)); Routing.RegisterRoute(nameof(ProductListPage), typeof(ProductListPage)); Routing.RegisterRoute(nameof(ProductDetailsPage), typeof(ProductDetailsPage));
So as you can see I don't create a hierarchy of Uri addresses e.g. Page1/Page2/Page3 because, pages like the code finder, or the product list can be accessed from different places in the program.
What I'm trying to do is go back to one of the pages set aside on the stack. In the example given above, I would like each operation selected in item 4 to, in effect, backtrack me to the list of products from level 3. I am unable to determine this using GoToAsync("../../../...") because I do not know how many pages have been set aside.
I would also like to mention that a page like a search engine or a list sends a message about the selected code or item has a list, and this is handled on one of the pages on the stack ( that is why I do not know how many pages I have to backtrack)
I tried GoToAsync(Page3) however it takes me to a new instance of that page, and additionally puts another page back on the stack.
Any ideas how I could approach such an issue?
Is Shell Uri navigation the right mechanism for this type of project?
Could anyone explain how to link (coordinate, synchronize) 2 (or more) controllers in dat.gui in general?
Here is an exemple from the official site of dat.gui (https://workshop.chromeexperiments.com/examples/gui/#2--Constraining-Input)
In this exemple, I'd like to link controller "growthSpeed" and "speed".
The number of "growthSpeed" remains stacked in 0.2 when I choose "Fast"... It must be changed to 5!
(And vice versa... if I change the number in "growthSpeed", it must deselect "Fast"...)
Thank you in advance for your help.
As long as you set controller GrowthSpeed to .listen() it will update as soon as that variable is changed. So if the callback for the dropdown changes the variable that growthSpeed is listening to, it will update automatically.
enter image description hereEssentially I have a tab panel. There are three tabs. Tab one is inventory items, tab two and three are separate portals that show captured signatures. I need help creating a button that opens my signature capture window, passes through that Sig1/sig2 tab was active/ had focus, and returns the captured signature to the portal in Sig1 tab/ sig2 depending on what is open.
As far as I can tell I would use GetLayoutObjectAttribute, but any information on where to start would be great. Thank you Community.
You are on the right track.
Use the GetLayoutObjectAttribute ( “Sig1” ; "isFrontPanel" ) statement to test if it is active. Sig1 here is the tab panel’s object name, not title.
While this did answer the question I had, the question I had was wrong. What I really needed to ask was "how do you change a container field on entry based on a variable"
Im pretty new in using the MVVM architecture and looking for some advice on the "correct" to approach this task.
2 page app.
Page 1 displays the alphabet.
Page 2 displays the selected character's details.
Example - Select "A" and screen 2 displays apple, Apricot, Aprium. Select "B" screen 2 displays Banana, Blackberry, Blackcurrant, Blueberry.
Data is being retrieved from a web service everytime the user selects an alphabet character.
Would the correct approach be to create a static menu for screen 1 (as you would never have anything else other than the alphabet characters) and on the click event load the second screen with the items as above using the MVVM approach (i.e. pass in the selected character to the LoadItems method). Or is there a simpler way to do this using a MVVM structure?
Ive read around and its not very clear on when to use which approach but then again as i say im new with MVVM too and would like to learn the correct/preferred way so i can get a better understanding.
Another approach which maybe more in-keeping with the Windows Phone experience would be to have a single page containing a LongListSelector. Fruit bound to this view could then be grouped by letter. Implementing a JumpList would allow users to quickly navigate this list by jumping between groups. You can find a sample implementation here- http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj244365(v=vs.105).aspx
Microsoft actually prefers that when you use a list in windows phone it is always better to display it in another page. So you should populate the list in another page. And if you are selecting some thing to show then pass them as parameters using the NavigationService.Navigate or store the data in Phone Application State if you have to use app wide. Phone.Application.Resources . Its good that you are going through Mvvm You'll know Xaml, WP7,8, Get Metro Application Idea also Silverlight.
Heres a toolkit that might help you. It also displays the same way in a new Windows Not a popup
Long List Selector
I want to start the Maps application from my app. A pin with a correct heading and description (Address) should be shown on the Google map. Ideally the user should pick up this location and use it for a navigation.
I tried this:
1) http://maps.google.com/maps?ll=-33.874559,151.219575
Problem: No pin is shown on the map. The user can add a pin (it is automatically positioned on my before given location) and he can make a navigation etc. If the user has added the pin, he sees the correct address.
2) http://maps.google.com/maps?q=This+is+near+Lake+Shore+Drive#41.9288,-87.6315
Problem: Pin is shown on the map with a given heading. If the user taps the pin, he can't see the address (only latitude, longitude). If the user adds a pin (like in the example before) the position is somewhere in around my given location, but not there where I want. The user has to adjust the position by himself and than he can make a navigation to this point.
3) http://maps.google.com/maps?q=1+Infinite+Loop+Cupertino,CA+95014,USA+(somewhere)
Now I have a heading and a description field. The problem here is that the description is taking account and then there are ten pins shown (which contains a keyword from my description) instead of one.
Other possibilities:
4) Use of a kml-file
I don't want to store many kml-files somewhere on a server. Ideally some URL parameters for creating a kml-file would be fine. But I think there is no way for doing that.
5) Use of MapKit
If I would use MapKit I could create my own pin headings and descriptions. But there is nothing for the navigation I think.
Are there any other suggestions?
I made a combination of MapKit and Google Maps.