How to import a plug-in in Tilemill? - plugins

It's a pretty simple question but I can't find it anywhere.
Where do I put the HTML code from a plug-in in TileMill?
For example this one:
https://www.mapbox.com/mapbox.js/example/v1.0.0/leaflet-heat-markers/
Thanks!

Mapbox.js plugins are meant to be used with Mapbox.js, rather than TileMill. Mapbox.js is a library for integrating maps into your website, whereas TileMill is a tool for designing those maps.

Related

react-leaflet with original leaflet plugins

It is more theoretical question, rather than some problem.
I'm planning to develop some wrapper for leaflet (encapsulate work with leaflet for other developer teams with some API in/out), and I'm wondering if to use react-leaflet or to use native leaflet library.
There is very long list of available plugins for leaflet, and as far as i see only +-10 of them implemented for react-leaflet.
From your experience, does all the original leaflet plugins works fine with react-leaflet? How often do you encountered with problem and which one are not working at all?
It should be possible to create a custom component for any react-leaflet extension.

Draw tree diagram in gwt

I want to draw tree diagram in gwt with custom connector color . Is it possible using some jar in gwt. I want to show hierarchy with diffrent connector color.
Can somebody help me?
You can use google visualization libraries. The org chart might be useful in your case. This is a javascript library that's been adapted to GWT so don't worry if you find JS code in the documentation.
Take a look at the documentation and make sure that this is what you're looking for then download the visualization libraries for GWT from here.
I would say to look into a wrapper for Raphaël.
But currently the Raphaël website is down so I am not sure about the state of this product. Although in Github I see a commit from only 5 days ago.

OpenStreetMap Grayscale tiles?

I'm building up experience with web development and my next projects are some web maps. I've looked into Google Maps and Open Street Maps and would like to use OSM for a project as it contains more detailed information of building footprints.
I've tried styling Google Maps which seemed fairly straightforward, but I'm a little lost with OSM. I've got to the point of trying to create my own renders (with TileMill) but this is crashing my system due to the amount of data.
What I essentially need is this (but for the UK);
http://maps.stamen.com/#terrain/12/37.7706/-122.3782
Are there any resources which you can recommend or how easy/ difficult is this to create myself? I think I would need to create the map (with TileMill or similar and then find my own servers to host), or is there an easy way to convert the standard map to Grayscale?
I want to keep it as simple as possible so please any recommendations?
Turning the standard map to grayscale: I might be very late to this but for anyone else running into this question: I found a very easy solution if you're working with HTML and Javascript using OpenLayers and the standard OpenStreetMap-Tile-Layer in color. I took the solution from here: https://openlayers.org/en/latest/examples/semi-transparent-layer.html
I don't know much about web development but this solution worked for me. Upon creating the map, as done in main.js in the example from the link, a class name is defined ('bw')
className: 'bw',
that can be used in index.html to manipulate the style o f it in the part:
<style>
.bw {
filter: grayscale(100%);
}
</style>
My application was altering a pre-built web-map from the qgis2web extension for QGIS. I was able to turn the tile layers from the background map to grayscale so the results would stand out more.
You could use https://github.com/Zverik/leaflet-grayscale to display any tile layer in grayscale. It's a plugin built upon the leaflet map displaying library.

Google Web Toolkit With Line/Pie Graphs

Currently I am using Google Charts with Google Web Toolkit but I wanted to explore other options for graphing. I looked into jGraph and the gwt extension mxgraph but that seems to only support actual graphs for flowcharts/diagraming?
Is there any other library (other than Google charts) that I can use to visually show line/pie graphs?
Thanks
Please have a look at high level visualization charts
http://www.moxiegroup.com/moxieapps/gwt-highcharts/
And wonderful showcase here
http://www.moxiegroup.com/moxieapps/gwt-highcharts/showcase/
Hope that helps.Good luck.

MapQuest Android API and Mapnik

I have implemented MapQuest's Android API. In the documentation for the general API it says when using the OpenStreetMap data it is possible to use "Custom map tiles via the Mapnik style files". I was wondering if that meant that you could host your own tile server running Mapnik and get the API to use those tiles or something else. There is no more mention of this in any of the documentation that I can find. Can someone help me clear this up please?
The reference to using Mapnik style files has to do with the fact that MapQuest offers the style files to developers who want to tweak them and then generate their own tiles based on OpenStreetMap data. This isn't specific to the Android API, however, and the Android API does not support custom map tiles. I apologize for the confusion (I work at MapQuest).
As I know, you are right and you can't use custom tile styles but custom UI styles (UI styles guide)