PlanetGMaps Forum

planetGMaps

Die deutsche Google Maps Community.
Die Möglichkeiten sind da!

Werbung


Google Maps API News

GKarten offline!!!

Freitag, 16. Mai 2008, 05:43 Uhr
GKarten offline!!!
Der Weblog über Google Maps ist geschlossen! Dank an alle Leser! The Weblog about Google Maps is closed! Thanx to all readers! Google Maps Links: Google Maps API Blog Google Lat Long Blog Google Maps Mania Google Watch Blog twitter.com/googlemaps ogee.de/googlemaps GKarten Shop

.. weiterlesen

GKarten offline!!!

Montag, 21. April 2008, 12:02 Uhr
GKarten offline!!!
Habe den Weblog "GKarten" geschlossen! Dank an alle Leser! The Weblog "GKarten" is closed! Thanx to all readers! Check out: Google Maps API Blog Google Lat Long Blog Google Maps Mania Google Watch Blog ogee.de/googlemaps twitter.com/googlemaps

.. weiterlesen

GKarten offline!!!

Sonntag, 16. März 2008, 20:02 Uhr

GKarten offline!!!

Sonntag, 16. März 2008, 13:02 Uhr
GKarten offline!!!
Habe den Weblog "GKarten" geschlossen! Dank an alle Leser! The Weblog "GKarten" is closed! Thanx to all readers!

.. weiterlesen

GKarten offline...

Samstag, 15. März 2008, 14:20 Uhr
GKarten offline...
Habe den Weblog "Gkarten" geschlossen! Dank an alle Leser! The Weblog "Gkarten" is closed! Thanx to all readers!

.. weiterlesen

Maps from another world

Freitag, 14. Dezember 2007, 10:02 Uhr
Maps from another world
Posted by Michael Weiss-Malik, Geo Team

Google Moon and Google Mars are great examples of what can be done with the Google Maps API. But in the rush to get both products out the door, we never quite got around to going the extra step and providing support in the Maps API itself for the tiles that Google Moon and Google Mars use. Until now, that is!

Fresh out of the oven, Maps API v2.95 includes explicit support for Moon and Mars map types. Want to plan your next moon landing, maintain a database of alien colonies, or just keep track of things you've lost on Mars? All these things and more are now just as easy to do as creating any other Maps mashup. The sky's the limit!

Speaking of the sky... while we were at it, we didn't stop at Moon and Mars tiles. We added support for Google Earth's sky imagery, too. That's right, you can now use the Maps API to create web-based versions of the cosmos, pulling from our huge tileset of merged telescope images. Note that we haven't yet perfected inter-galactic geocoding or driving directions, so you'll have to stick to Earth maps when you want to search for pizza joints and coffee shops. At least for now.

Michael Kosowsky of HeyWhatsThat.com was kind enough to whip up some great example applications that make use of these new map types. You can use his Cosmic Visibility page to see and understand the phases of the Moon or Mars. You can even see where the planets are in the sky, and where the horizon is, custom-drawn for your specific time and location. We hope these are just the first of many science mashups created from this feature.

All of this is made possible by the following pre-defined GMapType constants, which were added in the v2.95 Maps API: G_MOON_ELEVATION_MAPG_MOON_VISIBLE_MAPG_MARS_ELEVATION_MAPG_MARS_INFRARED_MAPG_MARS_VISIBLE_MAPG_SKY_VISIBLE_MAPThese work just like the familiar G_NORMAL_MAP and G_SATELLITE_MAP constants. See our examples for more info. As a teaser, here's a quick demo: Be aware that the sky data is referenced to the celestial coordinate system, which takes some getting used to for us Earth-dwellers. The vertical axis is known as declination, and the horizontal axis is right ascension (which increases to the left, unlike longitude which increases to the right). A good search engine can be used to help you find more info on this coordinate system. We also have some documentation of our own on this topic, for those interested in overlaying KML on the sky in Google Earth. Note that KML isn't yet fully supported on sky maps, due to the coordinate system reversal.

Now go create some other-worldly maps!.. weiterlesen


The GoogleBar: Now with Options!

Mittwoch, 12. Dezember 2007, 14:44 Uhr
The GoogleBar: Now with Options!
Posted by Pamela Fox, Maps API Team

About a month ago we introduced Gmap2.enableGoogleBar(), a command that puts our normal logo against a white background and adds an expandable local search box. The local search box is based on the configurable LocalSearchControl, so developers immediately asked when they'd be able to use the same options for the GoogleBar.

Well, a ton of you clamored for customization, so we put a rush order on it. Now, in v2.95, we have a new GMapOptions option: googleBarOptions (I know, so many options!). Those options will get fed into the LocalSearchControl when you call enableGoogleBar. It currently supports all the same options as the LocalSearchControl (with some constants renamed to our namespace), and also adds a showOnLoad boolean to let you pop out the search box upon map load. You can play with the options in the playground below to see some simple customization - but I bet that with all the callbacks available, you can come up with more innovative uses of the control than alerting after the search is complete. :) As always, please post questions (or examples of what you've done) in the forum.

Link to GoogleBar Options Playground .. weiterlesen

Using the Chart API in KML for Quick Data Visualization

Samstag, 08. Dezember 2007, 09:13 Uhr
Posted by Mano Marks, Geo API Team

Google just released the the Google Chart API. We don't often boast about other non-Geo APIs in this blog, but this one is amazing, easy to use, and, best of all, has great potential for use in Geo apps.

Using the chart API is simple. By passing various parameters in the URL to the chart server, you can control how the chart looks in the image that is returned. Your custom chart image can be placed in Maps API info windows, KML balloons, etc. Let's look at how that second scenario works.

Let's suppose that you wanted to show pizza deliveries at particular locations based on significant points in a romantic relationship. You know how it goes — someone likes pizza, they order it. When they get involved with someone, sometimes they order at a that person's house, so deliveries go down. Around the holidays, they eat less pizza because they're going to parties, but when they break up with someone, they eat a lot of pizza because they're lonely and depressed at home. Very sad. Anyway, I've created a sample using KML, and I placed it in a park in New York so no one thinks I'm watching their actual pizza consumption.

            1     Relationship versus Pizza     ]]>            -74.01490535558324,40.70396174218289,0        

See, pretty simple. I'll leave it up to you exploring the Chart API documentation to get more info on creating the chart, but I wanted to show something else you could do with KML 2.2. This will only work in Google Earth, but it's pretty cool. You use the new and elements to create a Balloon template, putting the entity replacements (those codes that look like: $[something]) in the URL. That way, you can put only the data relevant to a particular point in a particular balloon, and you don't have to recreate the whole URL for each . And if you change the chart, but not the data, all you have to change is one .             1                     ]]>                        Pizza Deliveries       #pizza       .. weiterlesen


v2.94: Terrain and a New MapTypeControl to show it off!

Freitag, 07. Dezember 2007, 16:15 Uhr
v2.94: Terrain and a New MapTypeControl to show it off!
Posted by Pamela Fox, Maps API Team

As announced on the Google Lat Long Blog last week, Google Maps has added a new Terrain map type that displays physical features and, quite frankly, is just dang pretty to look at. If you haven't tried it out yet, search for Mount Everest, the Grand Canyon, Glacier Bay National Park, or any other place that's suffered (enjoyed?) the natural forces of erosion and tectonic activity. We didn't enable the Terrain map type by default in the API as we didn't want to "surprise" developers and suddenly pop a new button on your maps, but we have made it very easy to add this type. Just insert code like this after initializing GMap2 to get a Terrain button on your map: map.addMapType(G_PHYSICAL_MAP);

In addition to the new map type, another subtle change was made to the Google Maps interface: the Hybrid button was removed, and was replaced with a drop-down menu under the Satellite button with a Show Labels checkbox. This new UI reflects the fact that the hybrid layer really just consists of satellite tiles combined with a transparent tile layer of information from the standard map tiles. We've released this new UI functionality to developers within the GHierarchicalMapTypeControl. The new control defines functions to add relationships to the control so you can specify how these drop-down lists will appear. For information on how to set up these relationships, see Modifying the Makeup of Standard Controls in the API documentation.

For those who want to mimic the current maps UI, just replace your GMapTypeControl object with a GHierarchicalMapTypeControl object — the existing G_SATELLITE_MAP/G_HYBRID_MAP relationship is specified by default. For those who want to use this control for their custom maps, however, you can clear the defaults and specify whatever relationships make sense for you.

As an example, I used the awesome Google Maps Creator java application from UCL-CASA to turn freely available ESRI SHP files into tile layers. After getting the custom map API code generated automatically by the application for all my layers, I combined them into one map and added in the new map type control. The result is a map with a drop-down that lets you switch between the four tile layers (various data for San Francisco county). Try it out below — and hopefully you'll be inspired to use the control for your own custom maps! As always, please post questions in the forum.

Link to Custom Map + HierarchicalMapTypeControl Example .. weiterlesen

New Article: Creating a User-Contributed Map App

Montag, 03. Dezember 2007, 17:02 Uhr
New Article: Creating a User-Contributed Map App
Posted by Pamela Fox, Maps API Team

In this crazy Web 2.0 world, it's all about one thing: the user. It's about what the user wants from your site, and what the user can contribute to your site. That's particularly true about map sites - the world is a big complicated place full of users who are experts on the 10 mile radius around them. That's part of the reason why maps.google.com added user-created maps, geocode editing, and local business reviews this year. Now, the question pulsing through your mind is probably: "How can I get in on some of this user-contributed action??" Good news, we have an answer!

Our latest article, "Creating a User-Contributed Map with PHP and Google Spreadsheets" describes what's necessary to set up a shared Community Map application. The article takes you through the steps of registering a user, logging in a user, letting users add map places, and creating the map. The article uses Google Spreadsheets for a pseudo-database and the PHP client library to perform HTTP operations, giving you the advantage of a nice frontend for database editing/viewing (spreadsheets.google.com) and a database that's not dependent on a particular hosting provider. However, those of you who are more comfortable with PHP/MySQL should be able to read through the article and apply the same principles to a MySQL database instead. As always, please post in the forum with questions.

.. weiterlesen

    1234567891011121314151617273747   >

^ Top | © 2006 planet-gmaps.de | css | xhtml