Google Earth Engine, hide widgets in Map.ui - google-earth-engine

Can I hide all widgets in https://code.earthengine.google.com/ when loading a map?
(all standard widgets including +-(zoom), map/satellite, drawing tools...)
I would like to create an app and embed it into a website without the widgets,
just displaying the loaded dataset.

Yes, you can hide all of the controls.
Map.setControlVisibility({all: false});
Depending on your application, you might also want to prevent it from being panned or zoomed:
Map.setLocked(true);
These examples are for the default map, but the same methods are also applicable to any ui.Map objects you create in your app if you are setting up a custom UI from scratch.

Related

Is it possible to customize Find Bar / Search Result Screen in Magnolia Admin Central?

In Magnolia, is it feasible to customize Find Bar UI or Search Result Screen to add an "Export" button so that users could export search results to CSV?
I realized that Find Bar UI component is a core component that belongs to admincentral module. If we wanted to extend it then we might have to touch to Magnolia core features. I'm wondering whether there is any possible approach.
Export button can be placed wherever in this search result screen like below
Is it possible/feasible? Yes, you need to customize the UI and then reconfigure the setup to use your customized Findbar component instead of the default one (see this). But since the code is open source, it shouldn't be a problem.

Disable/Enable mapview but not the other navigation features

We are using the HereMaps SDK for iOS. We have route information being calculated in a table view for the user, and we are updating this information continuously to the database. We also have a map view that optionally shows the user his current position and updates the route and maneuvers continuously on the map. This is not crucial for the user experience so we have placed it in a toggle view mode. When they click on a map icon that view will be shown etc. but it is in the same class. This has worked fine for us for a few years. Lately, (and only with some particular iOS devices - iPhone SE 2nd generation and iPhone XR) we are experiencing freezing UI issues. We think that because the mapview is not in a controller of its own, but can be toggled to be shown or to be hidden,that this may be causing the freezes. Simply put, these devices do not enjoy rendering maps continuously to a hidden view.
Is there a way to temporarily block or unblock just the updates to the map alone?
I figured out how to fix this. The best way to keep the map from updating the UI, but still to keep using its other navigational back-end features is by setting or unsetting mapTracking to the Navigation Manager.
So in my toggle to show or hide map I did the following when showing the map:
navigationManager.mapTrackingEnabled = true
and the following when hiding it:
navigationManager.mapTrackingEnabled = false
Problem solved!

Can I customize Electron tray app?

I'm trying to make my small app in a tray of OSX that will show some info.
The problem is that standard Menu lib allows me to create "natively" looking menus, when I want to make something that looks like this: (screenshot)
Is there a way to create some custom menu items with cells and images or should I create custom window giving the look I want using css? My biggest concern is translucency.
Now I just create it using tempate with Menu.buildFromTemplate. Mayb I'm doing it completely wrong.
Yes, you'll need to create a custom window, you can't create custom menu items via the Electron Menu API.
For your purpose you can use the following package to easily create a custom menu bar application: https://github.com/maxogden/menubar.
Just design your own index.html and custom logics and your are ready to go further.

Lock orientation for custom tabs

I would like to lock the orientation using Chrome Custom Tabs. Is this something I can do with the Low Level API or do I need to get a new method added for this functionality?
My use case is that I have an app that has custom tabs and I want it to always show the custom tab in portrait, never landscape.
Custom Tabs does not currently provide an API that allows the developer to lock the orientation.
As a best practice, developers should always think twice before forcing a specific orientation, as it may be annoying to force the user to use one.
Locking the orientation looks more like something that should be decided by the content being opened inside the Custom Tabs (using an API like this) than something to be handled by the Custom Tab itself.

How to create an interactive map in ASP.NET

I've created a page that shows a map of my complex. The idea is to put icons on the map representing where computers are located, and the user will be able to click on the icon to remote into the machine.
But I also want the icons to be moveable. Everyone should be able to open the page and drag the computer icon around. Is this possible using only ASP.NET?
you can use following options but not limited :)
Google Maps
Bing Maps
bing map sdk
You could use the html <map> and <area> tags along with an image of your complex to create a map that has points on it.
You can see an example of this here, however this is probably overkill for your requirements. All you need to do is set the coord and shape attributes for each area, this will give you an element that would represent the computers.
I'm not sure if you can manipulate these in javascript or jQuery though, as I have never tried, but hopefully this will give you a starting point.

Resources