In Openlayers can i have zoom rates 3m, 4m - zooming

Im using Openlayers in my project and i want to add some additional zoom rates as 3m, 4m. In Openlayers site i can see some fixed zoom rates only
https://openlayers.org/en/latest/examples/scale-line.html
The below is my resolutions array for metric zoom scale rates with added for 3m and 4m
'metric': [2, 1, 0.5, 0.2, 0.1, 0.05, 0.04, 0.03, 0.02, 0.01]
which is like
200m, 100m, 50m, 20m, 10m, 5m, 4m, 3m, 2m, 1m, 0.5m
With the above resolutions array im getting zooms for 4m and 3m in my map but in my scale display it shows as 5m for both 4m and 3m zooms. How can i make it display respective zoom rate on scale

you can check scale-line on openlayers. It's measure value changes even a simple pan. Maybe you can use in a local area with a specific projection.

Related

Does the size of anylogic elemnets can be changed while zoomIN++/ZoomOUT-- in GIS simulation as it does for the "GIS Regions"?

In Anylogic while running the GIS simulation model, the ZoomIn++/ZoomOut-- does not change size of Anylogic agents (for ex: car/train/bus) used into the model based on GIS map of Anylogic?
How it could be achieved? Does it offer any solution or property to anylogic elements for the relative size W.R.T. ZoomIn/ZoomOut property of GIS Model, as it follows for the "GIS Regions" (The size of GIs regions changes with GIS ZoomIn/ZoomOut)!!
Possible solutions, if exists!! /or Reasons/Restrictions behind?
ZoomIn Photo the size of elements is same
ZoomOut Photo the size of eements is same and full of mess not Easy to visualize
so first, please watch this video i made on how size works in an AnyLogic gis map:
https://www.youtube.com/watch?v=dAZo91lq44M
What I don't say on that video, is the answer to your question directly, which works only for 3D objects... What you need to do is to change the scale:
agent.Object3D.setScale(yourScale);
if you want to make them half the size, yourScale=0.5
for twice the size, yourScale=2
But AnyLogic is not able to identify when you zoom in/zoom out, so you have to do it manually, unless you use map.ZoomIn() method to do that.

How to add layers with different zoom levels to the layer group in geoserver?

How to add layers with different zoom levels to the layer group in geoserver?
For example,
layer1 - zoom level 5-8,
layer2 - zoom level 9-12
How to set the layers different zoom levels in geoserver?
Can you help me this issue? Thanks.
Layer Groups don't care about your visibility settings so you can add all of them together.
If what you are actually asking is how to make a layer only visible at some zoom levels? then you need to add <MinScaleDenominator> and <MaxScaleDenominator> to your SLD (or other styling method) - see the sld cookbook for an example.

View buildings in MapBox

I want to show all the buildings in my little village (fill in black color). I see them when I zoom in to the village (zoom=16), but when I zoom out, to 14 or 12, I lost the building and can't see them anymore:
First picture is zoom in, second is zoom out without buildings:
Just find zoom level at which buildings appear, save geometry and for bigger/smaller zoom levels simply scale building geometry proportionally.

How to get google static map with scale 2 and returns 2048x2048 pixels without Premium Plan

When I get google static map with scale is 2, I only get map size with maximum is 640px. How can I get google static map with scale is 2 and maximum image size up tp 1024 without upgrade account to Premium Plan???
https://maps.googleapis.com/maps/api/staticmap?center=0,0&zoom=2&size=1024x1024&scale=2
This returns a map of size 1024x1024 with scale 2.
The documentation states that you can get 1280 x 1280 without Premium Plan.

How to disable marker clustering below a certain number of points in the viewport?

Is there an elegant way to disable clustering of points by marker clusterer if there are lesser than, say 30 points in the viewport?
When there are fewer points I would like to plot all of them.
According to the documentation, minimumClusterSize does that:
minimumClusterSize number The minimum number of markers needed in a cluster before the markers are hidden and a cluster marker appears. The default value is 2.