Google maps with color/gradient overlay - dictionary

On google maps, on the website, is there a way to make it so that all land area is of a gradient color, and no names, text etc shows? so just a gradient color map, with nothing else.
Or is it better to use an image for such a case? The thing is, i need to show pins at specific countries, so idk if its simpler to use an image, and set each pin position separately, or to somehow use google maps, if its possible to set it to gradient color?
any ideas are welcome

You can create your own style map, I suggest you check the documentation
https://developers.google.com/maps/documentation/javascript/styling or https://console.cloud.google.com/projectselector2/google/maps-apis/studio/styles
The second link takes you straight to the management console to create your map.

Related

Using Paint Bucket In Photoshop

So i'm trying to use the paint bucket in Photoshop CS6 to design a logo for a client of mine.
http://i.stack.imgur.com/Et7OO.png ( What I currently have)
I want to colour the pale bits left with a different shade of green, when I use the paint bucket it covers the whole image, how do I colour in the remaining bits with the colour I want?
when picking the paint bucket you can change the tolerance in the top bar so that it only changes the colours you want. At the moment its most likely at 100 but if you change it to 20 or so it should work for you.
Another possibility could be that you are using the paint bucket on the wrong layer. Make sure you have the layer of piece of the image you want to change selected.
EDIT: Also, you are better off asking this question here. That community can help you better with that type of question.

Poly map with simple hovers

Can anybody tell my how map on http://ubytujnaslovensku.sk/sk/ was created/how to create something simillar?
there's only one image....
The map on the website you have provided is using two images. The first image is the actual IDLE map, the second is a shadow version of it.
The shadow version is simply a 'Sprite', where all of the areas is inset and is looking however they want it to look, when you hover it.
Whenever you then hover a zone JavaScript sees it and sets the 'Background-position' variable according to the country you are hovering.
The Sprite image is shown here.
I would suggest you to get a deeper understanding of sprites before trying to accomplish a similar map.

Highlight Land-Sea Borders in Google Maps

Is it possible to highlight the land-sea borders in Google Maps via a styled map?
I know that this question recommends activating administrative.land_parcel. However, when I activate the strokes in the Google Maps Wizard for Land parcel, nothing shows up.
The best I can do is highlight the strokes for Country and Province, which only activates within-land borders.
The water feature on the Google Maps Wizard that you linked to will highlight all water. There is a Weight option that appears to affect the border stroke width, but I don't see a way to get a transparent fill with a solid color in the Wizard.
From the styling documentation, it appears you should be able to use
water.geometry.stroke
and
water.geometry.fill
to select the water and its border separately, then style them to get whatever edge effect you're looking for. You may just need to adjust the Weight and Color properties of the stroke and leave the fill alone.
One caveat is that using the built-in water feature will select lakes as well as seas/oceans. This may or may not be your desired behavior.

div with more than four corners

Is it possible to make divs with for example five or six corners?
I need this to make clickable zones on a map. If there is another way to achieve this I would be delighted.
No, you can't. A block in HTML is rectangular.
And even if you change its look using (expensive) css based tricks, the clickable zone will keep rectangular.
But there are several solutions for clickable zones :
simple computations with javascript from the event coordinates on click
the old image-map format
If you want to do it in javascript without image maps, you may be interested by ready algorithms to decide if a point is inside a polygon.
If the map is an image, use a polygon imagemap. There are several web apps that make it easy to create these (just Google "imagemap generator").
If you're using a mapping API like Google, they'll have documentation on creating clickable targets within the map (for example: Google Maps Docs).

Handling overlays on Google Streetview custom panoramas

i'm trying to use overlays on a custom google StreetView Panorama.
I was able to simply put one on my pano, but the position is totally random (i made some attempts until the effect was alright), and the change of rendering mode (in chrome which renders as a sphere) changes the effect.
The problem is clear: the custom panorama has no information about its dimensions (it has only a LatLng), so the relative positions are wrong.
Am i missing something?
The only thing i need is to put some clickable labels on the walls of a room, which modify themselves along with the rotating panorama. I searched a lot, but my efforts were inconclusive.
Mapsicle seemed to do what i needed, but if i understood correcly it's a dead project.

Resources