Adding myself as a Basemap Provider on Leaflet.js - javascript

Does leaflet.js send through any announcements or call-outs for new providers added to their repository like through email or on their landing page?

Leaflet dev here.
No, we don't.
Leaflet is provider-agnostic. As long as you provide OSM-style XYZ tiles, or TMS tiles, or a WMS service, Leaflet will be able to use it.
It's up to you to reach users. It's also up to you to send a pull request to be included in the list of Leaflet plugins, if you choose to make a Leaflet plugin for your basemaps.

Related

Display offline ArcGIS Esri map using Leaflet

I need to display ArcGIS ESRI map hosted in intranet environment.
I was following this example and it works fine when system is connected to internet.
As our Map Server is hosted in intranet environment so I cannot use above example.
I have further investigated ESRI leaflet and found out that its making calls to online arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer for loading map tiles. I replaced this URL with our Map server URL
https://{our domain}/intsrv/rest/services/Cache/StreetsNightBlue/MapServer but still tiles are not loaded.
I have added all required CSS and JS files offline in my project already.
mapObject = L.map('mapDiv').setView([defaultLat, defaultLong], defaultZoom);
L.esri.basemapLayer('Gray').addTo(mapObject);
L.esri.Cluster.featureLayer({
url: 'https://{our domain}/intsrv/rest/services/Cache/StreetsNightBlue/MapServer/0'
}).addTo(mapObject);
When I run program, in console it giving tile not found error.
Update: Tiles appearing now but far away from marker cluster
Kindly help to fix this issue.

how to create service which gets the information from google places API

I'm creating an android app which uses AR and camera to find different places around it and highlight them when displayed.
It is developed using wikitude SDK(javascript API). I took reference of wikitude documentation from this link and built the app till this point. This app displays random POIs but I want POIs as google places. How to a create service which gets information from google places API so that I can then inject that in my application? Which google place API should I use?
I'd recommend you use the Google Places API - Place Details.
Google Maps API: Lets you add various types of base maps, draw various overlays on the map and use other services such as Directions.
Google Places API: Finds detailed information about places, use your current location and has auto complete features.

how can I load the leaflet map in advance?

When the application starts, it is kinda slow to load the map at run time.
Is there a way to save the leaflet map in local or improve the loading speed in browser?
What is a leaflet map for you ? Remember Leaflet itself loads the content from a tile provider.
If you don't want to request the tile map over the internet, you may download one locally and somehow link leaflet and your own installation.
OpenStreetMap allow users to download their own tile provider.
How to install Nominatim locally
If you want to store your leaflet objects (like markers, paths, etc.) the localStorage Javascript's variable can help you.

How Do I Embed A Private Google Map

I'm trying to set up a custom map for internal use within the company I work for but I'm having a little trouble doing so.
I don't want people to have to sign in with a Google account or anything and I want to embed this on to it's own page on our server.
I've set the map to private and of course, the map doesn't show up - is there any way that I can keep the map private but still embed it?
I'm guessing I'd need to do this with the Google Maps API but so far, I've struggled to find a tutorial or anything that provides the answer.
I'm using a simple iFrame so far like so:
<iframe src="MAP URL HERE" width="640" height="480"></iframe>
I would recommend using OpenLayers with an OpenStreetMap tile layer. This is open sourced api and it allows you to create custom maps where you can allow people to add markers, lines, polygons etc to the map with information about those features. I have provided a getting started link below.
http://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example
Considering you want the map to be private, then this depends on the website in general or the intranet settings so that only people on the server can view the map.

Creating analytics map similar to Google Analytics

I'm building an admin panel here at work and recording some ip data from users who are downloading our itunes mp3's. We have the ip and location of the user, but I'd like some way of displaying that visually. Is there any jquery plugin or addon that would allow me to display the stats I collected visually on a map similar to the way Google Analytics does it?
Have you tried the Google Chart Tools api (https://developers.google.com/chart/) ?
There is a geo chart which I think is exactly what you are talking about.
https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart
https://code.google.com/apis/ajax/playground/?type=visualization#geo_chart
jVectorMap could also be suitable here.

Categories

Resources