Git Product home page Git Product logo

maps-for-work-samples's Introduction

This repository contains samples, demos and tools relating to the Google Maps APIs and related enterprise products, like Google Maps Engine.

The samples directory contains simple samples that show a single concept.

The demos directory shows some more complex examples, and usually combines the use of a concept or two.

The tools contain different tools that both show how to do some thing, but also is a useful tool that you can use e.g. for debugging.

Each directory is split into a sub-directory based on the product it applies to.

maps-for-work-samples's People

Contributors

jpatokal avatar miguev avatar ojas-gulati avatar pack3tl0ss avatar susi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maps-for-work-samples's Issues

Unable to fetch LatLng when polyline set to Geodesic TRUE

I want to have all the latlngs being drawn by google map when the geodesic functionality is on, when the polyline is drawn
for suppose if i have to draw a polyline from departure to destination, i add two points to polyline options and set mode to geodesic and add it to google map in order to draw/render. But if the departure and destination are far two long from each other, it draws kind of an arc (geo desic path line) which may have different curves, i want to have all that latlng being drawn by that polyline. how can i achieve this?

Hints for changes

Change "http:" to "https:" for all Google and OpenWeather URLs, as the access to the page (and when embedded in code) will most likely be via https:.

Optionally extend to (for the heck of it):

            infowindow.setContent(
                "<img src=\"" + event.feature.getProperty("icon") + "\"/>" // note added quotation marks
                + "<br />" + "<strong>" + "City: " + event.feature.getProperty("city") + "</strong>"
                + "<br />" + "Weather: " + event.feature.getProperty("weather")
                + "<br />" + "Temperature: " + event.feature.getProperty("temperature") + " &deg;C"
                + "<br />" + "Temperature feels like: " + event.feature.getProperty("feelsLike") + " &deg;C" // requires changing the extraction of data as well
                + "<br />" + "Temperature max: " + event.feature.getProperty("max") + " &deg;C"
                + "<br />" + "Temperature min: " + event.feature.getProperty("min") + " &deg;C"
                + "<br />" + "Humidity: " + event.feature.getProperty("humidity") + " %"
                + "<br />" + "Pressure: " + event.feature.getProperty("pressure") + " hPa"
                + "<br />" + "Wind speed: " + event.feature.getProperty("windSpeed") + " m/s"
                + "<br />" + "Wind direction: " + event.feature.getProperty("windDegrees") + " &deg;C"
                );

windGust is not in the response data. Maybe only available in certain areas.

A key is needed for "https://maps.googleapis.com/maps/api/js", a la "https://maps.googleapis.com/maps/api/js?key=[some key]&libraries=geometry".
I don't know if geometry is required, but I tend to set it anyway.

I noted that you use different icons (img/w instead of img/wn) than OpenWeatherMap recommends. I didn't find any documentation for img/w, but on a map they provide better contrast than img/wn. In listings I use img/wn, mostly with @2x.png.

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.