how to display a map in jframe - jframe

I would like to display a map inside a jframe. More specifically, I don't want to display a static map, image.
I would like to display a map like google map with all the utilities like panning/zooming etc.
Could you help me?? Is there any reference code??
Thank you.

You might want to check out OpenMap

Apparently jFrames doesn't seem to support Google Maps.
Google Maps - Issues
You may want to look into alternatives, such as using an iFrame?
Google Maps Embedding Tutorial
or
Google's How-To for Google Maps

Related

Alternative to google maps places autocomplete

is there any alternative to google to implement a places autocomplete in flutter?
I am developing an application that needs the geolocation of places (I don't need to show the map) and use their coordinates
You can use Open Routes API's asi an alternative solution.
https://openrouteservice.org/dev/#/api-docs
Check that service as a reference... There is an option called "Directions" that can help what you are looking for...

Tooltip on Bing maps, what to use - Infobox, or something else?

I'm working on a wepbage where I have a Bing map, along with pushpins. When clicking on pushpins, I am supposed to show a tooltip with custom content - something which would ideally be pulled out from the database through ajax.
This custom content is likely to contain youtube video, some html, as well as some buttons and links with specific actions.
My question is what to use to implement this? I see two potential solutions:
Something like qTip or Fancybox: pros for this approach are that I am pretty familiar with either of these two, and that they can display virtually any content provided. Cons are that I may be having difficulties integrating the solution with the Bing maps (for example, when I move the map, I need to move the tooltip as well)
Infobox - as far as I know, regular part of Microsoft's api, well integrated with the maps. However, I have no idea how to fill Infobox with Ajax response. Moreover, I don't know how well Infobox can cope with rich html.
So, what to go for?
Thanks
There are a couple of options. The first option is to us the built in infoboxes in Bing Maps by setting the htmlContent. I have a blog post on how to do this here: http://rbrundritt.wordpress.com/2011/11/08/simple-custom-infoboxes-in-bing-maps-v7/
The second method is to use the custom infobox module I created here: http://bingmapsv7modules.codeplex.com/wikipage?title=Custom%20Infobox%20Control

Custom Maps in iPad App

I just want to build a drill down map like this - Drill Down Map
Here I want to show some data on tapping of each regions.I am out of clue. How can I ? What should I use ? From where to start ?
EDIT : In the link it's showing the country name on mouse over, instead of that I want to show some data/info of the country on touch. Please visit the map shown in the link,you'll get the whole idea.
Thanks !!
If you want total control on the map layout, and be able to check which country the users taps, there's no secret : you need to have boundaries of all countries you want to detect.
Here's the global approach I would use to reimplement something that looks like the map you linked to (I can you into more details if you want, but at first, here's the global approach) :
Get the data of the boundaries of the countries you need. This can be done using OpenStreetMap.org data.
[EDIT] I just came accross this website to download countries boundaries as files you can then use with tilemill : http://www.gadm.org/country
Use this data with tilemill (http://mapbox.com/tilemill/) : this tool is able to design maps using a language that looks like CSS but dedicated for maps. The results is great and the tool great as well. This tool also support shapes files, so if you can get the countries boundaries as shapefiles, you'll be able to use them with tilemill, and this will be easier than using .osm files from open street map). Have a look here http://mapbox.com/tilemill/data/ for the supported formats.
Then, with tilemill, export your map as an MBTile file (this file contains all tiles needed to get the map rendered at different zoom levels).
Use the route-me project to display the resulting MBTile file (in its latest version, route-me is able to do that, this feature has been implemented by the mapbox team to support their open format MBTile).
Guys from Mapbox have published a good tutorial "from data to maps" here : http://mapbox.com/demo/making_massredistrict/ this may help as well
Your best bet is to use CloudMade ( http://cloudmade.com/ ). They provide custom map builders program where you can build custom maps and can integrate those maps in your iOS app.
Depends what you are looking for. To implement the linked example it's enough with a giant image that you can split in tiles using CATiledLayer. You'll find examples if you google a little, PhotoScroller is one. If you want to display real maps you have to investigate the route me project.
I don't think that using images could be good option.Check this link - arcgis-iphone api. I am not so sure but you can get some idea from this.
Happy to help..

Show multiple locations on google map

I want to access google maps in iphone to show the multiple locations of the Branch-centers in 1 city/area,
any help?Please have look at the following image.
thanks,
this blog will help, specially for maps,
see the following link-
click here

How to download OpenStreetMap tiles from CloudMade?

how to download cloudmade map tiles? i have to download tiles with different zoom levels? how save these tiles to database for later loading? any sample code available? any help is appreciated..
There are different options available to you.
First, you can use the Javascript "Web Maps API". This is useful if you are wanting to show the maps on a website. It will download the required tiles and display them appropriately, and give you the interface to pan and zoom the map. See their pages at http://developers.cloudmade.com/projects/show/web-maps-api
Second option is if you want to access the map tiles directly. They call it their HTTP Maps API. You will need to make the calcuations of which tiles to download, how to arrange them etc for your own application. Have a look at http://developers.cloudmade.com/projects/show/tiles
Finally, although you don't mention it in your question, I see the question is tagged with "iphone" and other related things. Perhaps you want to look at their iPhone SDK, which is similar to the Web Maps API. See http://www.developers.cloudmade.com/wiki/iphone-sdk/Examples for examples on how to use it.