Hiding markers in Google Maps without Javascript

So, I came here via the Google mailing list.

I'm trying to display a static map in a Qt application without using Javascript. So far I can get the right map specifying a center and a zoom level.

Now, I have two points and I want to fetch a map image that contains them and I managed to do it with markers.

Take this url as an example:


This is the image I receive:

The white markers are clearly visible in the maps. I have found a way to hide them via javascript but I'm wondering if there's a way to specify it in the url directly, without using javascript.

While I found a way to get rid of the marker symbols (my answer), I would like to know if there's a better/proper way to achieve this.


I found a way to fetch the same map without the marker symbols. Instead of using the marker label, I'm using the visible one.


This brings:

When I read the docs, I misunderstood it and thought it was a boolean value, so when I tried visible=true or visible=false I would lose the view of my map and the markers would still be there.

Need Your Help

How do I get the mouse position of a DOM element that is a child of a relative element?

javascript mouse

How to get the mouse position over a DOM element, that is a child of a relative element

setTimeout is not firing inside for loop

javascript settimeout

I have the following jquery code with setTimeout function to set a variable to false but it never works and the variable always remains to be true