How to hide map but show other layers - google-maps-android-api-2

I am developing a simple map app using Google Maps API v2 for Android.
The data that is displayed are:
a. The map layer (the satellite view from Google Maps);
b. The political map layer (KML);
c. Some custom markers from user (KML).
I would like to add a button to toggle show/hide each layer. I can do it for layers "b" and "c" (e.g. Hiding/showing a kml layer on customized google maps depending of the view), but how to do it with layer "a"???
I searched a lot and did not find how to do it using only that API. Is it possible?

The mapType MAP_TYPE_NONE positions the custom tiles according to the camera position, but does not show its own map tiles.

Related

Xamarin Forms Maps Scroll Event

In my Application Project i have set up a Xamarin Forms Map which centers on the users position. Now i wanted to let an icon show up when the user dragged the map somewhere to recenter on the position of the user. Unfortunately xamarin forms maps only has ja MapClicked event so eve3n when the map was dragged i have to click another time on the map so that the event is triggered. I tried using geastrue recognizers as well but somehow they neither work on the map directly nor when i impliment them on the grid over the map.
After some time i thought about checking wether the map position equals the users position and i found this tutorial https://xamarinhowto.com/xamarin-forms-maps-getting-location-radius-of-users-input/ unfortunately this did not work for me either since the code could not handel .Log() for strings.
Do you have a solution for my problem? The recenter icon should just appear as it is in Ios Maps when i dragged the map from my position.

Mapbox gl repeat marker

I try to repeat a marker at the same coordinates when I am moving the map to infinity, in the same way that layers.
example : https://www.mapbox.com/mapbox-gl-js/example/geojson-polygon/
Has anyone found how to do that please?
If it's not possible, conversely is it possible to not repeat layers when you moving the map ?
Thank you
The Link example you provided is not using Markers to render the shaded area. It is using a feature, in this case a polygon, included in a layer (a layer can have many features).
In MapBox the rendered map is made up of any number of layers (including the tile data) which is rendered whenever you scroll or drag to a particular area of the map. For example as you keep dragging to the right in the map it will just keep rendering in the relevant layers and tiles.
The Marker functionality has a different purpose which is as a one off selected point which is useful for a user click or hover interaction.

Bing Map Drawing Tool Module - Initialization

i have a Geolocalisation Web Application and i Use Bing Maps as a Front End Map Tool, for the back end, i would be able to edit points and polygons, for this, i am using Bing Map Drawing Tools Module.
My Goal is to use the same map to add / or edit a shape depending on what is the content of certain textbox.
So, there is any way to init the map by a default drawn shape and pushpin?

How to differentiate markers in Leaflet

I am working on Openstreet map. I have displayed markers in leaflet, but I want to design an interface and assign different groups to the markers. E.g. when an user clicks on "Hospitals", all the hospitals should be displayed on the map.
You should study this tutorial.
What you can do is group all your marker in the same category in a L.LayerGroup,
then the user will be able to add or remove it at will with the control.

How do I add a scale bar or north arrow directly on the map control?

I've already looked into SurroundFrames and MapSurrounds, but this appears to be for cases in which you want to add these elements to a printed page. I, on the other hand, am using the MapControl within a live application, and I would like these element directly on the map, in the same way you see them on Google Maps.
Do I have to add these things from scratch using custom symbols and capturing events, or does ArcObjects automate this in any way?
The PageLayoutControl is designed to do this. Scale bars, legends, north arrow, map insets, titles, overview maps, etc. are all layout elements.