How to make local glyphs and sprite to be used on my style file for my hosted map? - maps

I am making a vector tile map and using Maplibre engine to show it on my website.
I used to use Maptiler but now am going to host my own personalized map on my desired Hosting Service Provider.
I need to use sprite and glyphs endpoints, which now look something like this on my style file:
{
"version": 8,
.
.
.
"glyphs": "https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key=...",
"sprite": "https://api.maptiler.com/maps/streets/sprite"
}
But I don't want to use Maptilre endpoints and want to make my own personalized files and upload them on my host and make my own endpoints.
where the result would be like:
{
"version": 8,
.
.
.
"glyphs": "https://api.example.com/fonts/{fontstack}/{range}.pbf",
"sprite": "https://api.example.com/maps/streets/sprite"
}
any idea how I can achieve this?

I am trying to use an OpenSource tool:
TileServer-GL
So far I managed to host a server map locally, but I have some inconsistencies between online Glyphs and Local... (Maputnik online editor vs Tileserve-gl)
Here is my raised issue:
Tileserver-gl-issues

Related

Is there any way to configure the pan/crop position when using Google App Engine Image API?

I'm using Google App Engine and using get_serving_url to get a URL which I can append on to perform resizes and cropping. I'd like to be able to crop a square out of an image, but to also control what part of the image the crop is coming from, like passing in x/y values/
I've seen an unofficial list of options. I tried using the x/y/z options but they did not work and I'm not sure how to get them to. I don't see why GAE Image API wouldn't be able to handle this.
From the oficial documentation of Images Python API there is no parameters to specify the x,y for the crop transformation when using get_serving_url() method.
But if you use the crop method of Image() class, it accepts 4 parameters:
crop(left_x, top_y, right_x, bottom_y)
Check the documentation here.
Notice that this is for Python API for App Engine Standard.

Android map navigation

Hi I am new to programming so please bear with me.
Basically, I want to create a map for Android devices that load markers and navigate from point A to B while avoiding the markers. It is ok if the path is not the shortest.
I have tried loading markers from geojson file using both google map and mapbox with no problems. Now, what can I do to customize navigation within the app itself? Thanks in advance.
Unfortunately, it does not appear that this feature has direct support from the API. Please see these answers for alternate suggestions:
Google API (directions) - creating routes that avoid certain points
Blacklisting specific roads from Google Maps/Mapquest?

Arcgis: How can I load an image as the map?

I am using Arcgis WPF, I am wondering if I could load an image as the map in my application? If it is possible, could you please tell me how to achieve it?
Thanks.
You can use ImageServer for the imagery files, and if the image is an .jpeg or .png and is non georeferenced, then you can use ArcMap to make it a map service (tiled map service or dynamic map service) and then use that map service in your code. You can go to ArcGIS online forums for WPF for more information
Is it satellite imagery or just an image? What API are you using?
If it is just an image, you can use a Graphics Layer and add the image as a graphic. With this approach, you can give it whatever lat/lon makes sense for your spatial reference.
If you have satellite imagery, you want to add it as a Raster layer (ArcGIS for Desktop/Engine) or a Tiled Map Service (WPF/Silverlight APIs). If you are using the WPF API's (and not ArcGIS Engine) then this requires access to ArcGIS Server to publish a map service.
I recommend reading through the API documentation as it is well documented.

Loading Images for Silverlight app from server without ssl

I have an Silverlight application that uses ssl to communicate with the site-of-origin. The application loads a number of images from a separate server (running apache under port 81 without ssl). The images are regular png's. The images from the Apache machine are not loaded properly, i.e. the image control remains blank. When I post the same image on my app server (i.e. site-of-origin), and modify the link accordingly, the images are displayed properly. This link on MSDN says that images are media are excluded from access-restriction policies.
Would appreciate any suggestions.
I hope you are deploying your Silverlight application to a web server and not running it using the Visual Studio development server. I had a similar problem with images when I was using the built in development web server. You can find about my experience here.
It might help if you subscribe to ImageFailed event and post the stacktrace.
You are running into cross-scheme access restrictions in silverlight, see table at the bottom of http://msdn.microsoft.com/en-us/library/cc189008(v=vs.95).aspx
One possible solution is to load image using WebClient and call SetSource on image element. That is what we do in our app. In fact we wraped it into custom image control that hides all annoying details.

How to save esri map as an image file

I am using Silverlight 3 and I am trying to take a screenshot of esri map.
I was able to take a screenshot and save as a file for silverlight controls, but when I try to access Esri map image, I get "Pixel access not allowed" error. I heard this is because of different domain (I am trying to get map image on the client side, and map image is not accessible at server side in my silverlight application).
So I am trying to find a function from esri so that I can save the map image as a file.
does anybody know how to do this? or any other way around?
I am using a script from the Code Gallery for both printing and exporting map images.
The script requires a little bit of tweaking to get it to work (plus you need to dig a little bit into WCF and self-hosted services), but it has been working great for several months now. You can see it in action at our web site.

Resources