Google maps set zoom control bar to start from min zoom - google-maps-api-3

I have a Google map in a web page where the min zoom is set to 7. I would like to set the zoom control bar to start from 7 and not showing the lower values. Is this possible?
I've been looking around the API but I couldn't find anything useful.
Thanks

During your map initialization, set this option-
minZoom:7
This sets your map and the zoom control bar to a zoom level of 7 and you cannot go under this level.

Related

drawing tools on Mapbox

I have added some drawing tools to my Mapbox map using the following code provided on the Mapbox website... https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
I removed anything to do with the area measurement calculation as I only wanted to be able to draw on the map.
However, the map is set to default draw without having to click the drawing icon. This means when the page opens rather than being able to pan around the map the cursor is a crosshair and begins drawing.
I noted the following section in the script but not sure what to put in place of "draw_polygon" to stop it from being the default.
// Set mapbox-gl-draw to draw by default.
// The user does not have to click the polygon control button first.
defaultMode: 'draw_polygon'
});
Anyone have any ideas how to stop draw polygon from being the default?
Also any other ideas on other/better drawing tools?
The default mode is simple_select, so you can either add this in place of draw_polygon, or just remove the defaultMode option altogether and it will start in simple_select mode.

Zooming in to the number of selected points of Shield UI ASP.NET Chart

How can I zoom in to the number of points I have selected on the Shield UI ASP.NET Chart?
I enable the necessary property:
<Settings EnablePointSelection="true">
</Settings>
but can’t figure out how to invoke zoom in after the selection is made.
Shield UI Asp.NET chart adopts a new and more convenient zooming/panning concept which leaves out the possibility of selecting multiple adjacent points and zooming in to them.
Instead using the scroll wheel the user can zoom in and out much easier. In addition by holding down the mouse left button the user can move the chart so that the points of interest are in the middle of the plot area.
One good example can be found here:
http://demos.shieldui.com/aspnet/spline-chart/zoom
In respect to the above information the points selection has nothing to do with the chart’s zooming.

Google Maps Overlay Infowindow Div

I am hoping someone can point me in the right direction. I have a google map v3 with fusion table that I am looking to create a custom box with the content that would normally be displayed in an infowindow.
Much like http://www.instaearth.me or
http://chrismcaleenan.com/map/?page_id=7
So the user clicks on the marker and the content is loaded into a box/window/div that is not attached to the marker itself.
Does anyone know of any samples / tutorials where someone shows this being done.
Thanks
The FusionTablesLayer has a FusionTablesMouseEvent which is returned on a click (if you add a click event listener to the FusionTablesLayer). That Object contains the data in the row associated with that geographic object (icon, polyline or polygon), and you can use it to populate an HTML div on your page.
working example, zoom in past zoom level 2 to see the FusionTable code work, at zoom 0, 1 it uses the KmlLayer

add shading to asp.net imagemap.hotspot

I am trying to add shading or some type of coloring to hotspots within an asp imagemap control.
The overall scope is we have a map overlay and within each map we have n number of hotspots. However while the hotspots are there it is not to readily visible to the end user unless they just hunt over the image until the cursor changes.
I need some way of letting the end user know there is a click-able hotspot on this section of the map.

Google Maps Api V3: Limit MarkerClusterer on certain zoom levels

I have a MarkerClusterer which i want to disable if the zoom level is below a threshold.
Example:
The zoom level is 10, the clusters are visible. The threshold is 5, so if the user zooms out to see the world, all Markers should not be rendered. I don't want to clear the markers though, because they need to be shown if the user zooms in again.
If you don't want to clear the markers, you can instead use setMap() to set the map, to which the MarkerCluster is assigned, to a different map than the one the user is viewing.
setMap() takes null as a valid parameter.
Another option is to do some awful hack, like creating a second map that is not visible to the user and assigning the MarkerCluster to that map. It won't win any coding competitions, but it will work.
Then, when you get back to an appropriate zoom level, you can use setMap() again to put the MarkerCluster back on the map.
You can use the zoom_changed event to detect when the zoom on the map has changed and call setMap() appropriately.
Hopefully, this is all you need to get this done, but if not, post some of your code and maybe we can try to be more specific about exactly how to modify it to achieve this.

Resources