which minimap should I use with custom image in leaflet - leaflet

I'm using leafletjs with a custom large image where I am serving the tiles from my local server.
I need to display a minimap that shows what is currently visible on screen, what would be best to use in these circumstances?
Is there something already available in leafletjs or do I need to use a plugin or build a custom one?
I saw this one but it seems kind of specific to using a map: https://github.com/Norkart/Leaflet-MiniMap

Related

How to edit MapBox Style editor dynamic on app

I'm developing a map app using mapbox_gl package, and trying to edit style layer while app is running.
Generally, style layers are edited using the MapBox style editor. But I want to change the state of the layer depending on the conditions of the app user.
For example, in the MapBox style editor, set a layer to show a red line tracing the road as shown in the image below.
And I want to be able to change this to blue within the app.
But I don't know how to edit the state of the layer. Anyone know how to do this?

Adding a Custom Marker in Flutter with MapBox plugin

So I'm currently working on a feature that uses MapBox package/plugin to display a Map on my app.
What I want to achieve is something like this:
So far from what I've seen in Flutter the addSymbol method only allows you to add images and text.
Does anyone know how to create a marker like the ones showed in the image? Is there any support for this?

Is it possible to add a watermark in MapBox vector tiles?

A client would like to add their URL as a brand/watermark within a MapBox tiled vector layer in MapBox Studio, so that the watermark appears wherever the tiled vector layer is displayed. (One possible use-case is to discourage competitors from stealing that tiled layer in their own maps.)
Is it possible to add a watermark to a tiled layer in MapBox, and ensure that it's visible at least once in every view?
I tried adding a duplicate copy of a polyline dataset as a Symbol Layer, and labelling it with the client's URL using the Text Field option. This works but has the side effect of preventing the labels from appearing on the original copy of the line layer.
It is not possible to add a single occurrence of a watermark to a map style in Studio in the way that the Mapbox watermark is displayed on a map, but there are alternative approaches to achieve what you are looking to do.
If the underlying goal is to prevent competitors from using a particular map style (and hence an underlying tiled layer), the best approach is to set scopes and URL restrictions on the Mapbox access tokens being used to access the map style in a public environment. You can find more useful information about token management and access tokens in general in the Mapbox documentation. This approach could be used in conjunction with adding a branded "watermark" on the client side -- for example, placing a fixed div in the corner of a web map loaded with GL JS. Although this watermark obviously isn't included in the style itself, setting a URL restriction on the access token used to load the map would prevent others from accessing the same map with that token on other domains.
You could also experiment with adding a low-opacity background-pattern to relevant layers in the map style itself. This property could be used to mimic a traditional watermarked effect, where a particular logo is placed on an image at multiple regular intervals.

How do I disable the tiles happening in leaflet? I just want my image to show fit to window and zoom single image

Leaflet framework seems like perfect solution, however it is using tiles to zoom. I want to source a single file and have it fit to window and zoom based on image being much larger than container.
I cannot find anywhere to disable tile feature. If I did would it break zoom functionality?
Welcome to SO!
Sounds like you overlooked Leaflet Image Overlay.
There is also a tutorial, although you may not need the CRS.Simple part.

Custom Map View

Here is the scenario...
I have a image of a map in jpeg format... I want to add it to my iPhone application and mark the coordinates in certain places (just like annotation in map kit ) and also when i move from one place to another place the current location should change and the new location should be marked in the image.
Is that possible ? How to achieve this instead of using the mkmapview ?
I found this tutorial how to add custom google maps, maybe you could use your image (.jpeg) as a overlay.
stiern.com/tutorials/adding-custom-google-maps-to-your-website
Sounds like you want to use an MKOverlay.
Essentially it boils down to looking at the TileMap sample code from WWDC 2010. It'll still load the Google Map in the background and your map over the top