Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Map support in UPP ?
Map support in UPP ? [message #25055] Tue, 09 February 2010 12:20 Go to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Hi,

Does U++ has any type of control object to display maps, or better to use a map provider and display maps on windows?

Suppose i want to make an application that shows a google map with some bookmarks, zoom etc. Does u++ has support for this?


Thanks
Alex
Re: Map support in UPP ? [message #25057 is a reply to message #25055] Tue, 09 February 2010 12:29 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
What about this?:
Edited link:
http://www.ultimatepp.org/forum/index.php?t=msg&th=4913& amp; amp;start=0&

[Updated on: Tue, 09 February 2010 12:32]

Report message to a moderator

Re: Map support in UPP ? [message #25060 is a reply to message #25055] Tue, 09 February 2010 13:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
alex100 wrote on Tue, 09 February 2010 06:20

Hi,

Does U++ has any type of control object to display maps, or better to use a map provider and display maps on windows?

Suppose i want to make an application that shows a google map with some bookmarks, zoom etc. Does u++ has support for this?


Thanks
Alex


You are one lucky guy:) I needed just this a couple of days back, so there is now code in bazaar forum.

Thinking about it, I might make it an example.

Mirek

[Updated on: Tue, 09 February 2010 13:08]

Report message to a moderator

Re: Map support in UPP ? [message #25062 is a reply to message #25055] Tue, 09 February 2010 13:08 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Great!

I made a search for maps. I see that i should make a search for "google" in this forum Smile


Thanks
Alex
Re: Map support in UPP ? [message #25065 is a reply to message #25055] Tue, 09 February 2010 15:24 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Ok, it works fine Smile
It seems that basic functionality and implementation is in there. Now i have to implement zooming (dbclick) and drag features



By the way, it there any way to use freely google maps into a commercial application?

Or it is better to use a free map provider (not so complete as google is) instead?

Thanks

Alex
Re: Map support in UPP ? [message #25068 is a reply to message #25065] Tue, 09 February 2010 15:50 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
alex100 wrote on Tue, 09 February 2010 09:24

Ok, it works fine Smile
It seems that basic functionality and implementation is in there. Now i have to implement zooming (dbclick) and drag features



By the way, it there any way to use freely google maps into a commercial application?



I think not, but you better check GoogleMap static map API.

Quote:


Or it is better to use a free map provider (not so complete as google is) instead?



Are there any?

Mirek
Re: Map support in UPP ? [message #25070 is a reply to message #25068] Tue, 09 February 2010 16:08 Go to previous messageGo to next message
chickenk is currently offline  chickenk
Messages: 169
Registered: May 2007
Location: Grenoble, France
Experienced Member
luzr wrote on Tue, 09 February 2010 15:50


Quote:


Or it is better to use a free map provider (not so complete as google is) instead?



Are there any?

Mirek


Well there is OpenStreetMap, which is rather a database and specification that needs an external renderer.

Some available renderers are shown here: http://wiki.openstreetmap.org/wiki/Beginners_Guide_1.5

(notice there's one in C++ (Mapnik) that uses AGG as back-end... seems we could do the same using U++ technology directly!)

Here is an example of Mapnik output: http://mapnik.org/maps/srtm_relief_natgrid/

My 2 cents,
Lionel
Re: Map support in UPP ? [message #25071 is a reply to message #25055] Tue, 09 February 2010 16:08 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Yes there is.

Please check openstreemap!

What do you say?

Alex
PS: As the idea is to create i think it is right to use openstreemap.
Re: Map support in UPP ? [message #25072 is a reply to message #25068] Tue, 09 February 2010 16:10 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Example uploaded.

There are some useful calculations in it, most important pixel<->longitude/latitude conversions and long/lat formatting/scanning.

index.php?t=getfile&id=2240&private=0
Re: Map support in UPP ? [message #25073 is a reply to message #25071] Tue, 09 February 2010 16:14 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Uploaded?

Ops... external renderer needed Sad

Does anyone knows how much is the google fee?


Swinglab (JAVA things) has a swing control capable of display openstreetmaps...

I thought that openstreetmaps worked like google .


Alex

[Updated on: Tue, 09 February 2010 16:18]

Report message to a moderator

Re: Map support in UPP ? [message #25074 is a reply to message #25073] Tue, 09 February 2010 16:22 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
By the way, in this forum we can read:

http://www.mail-archive.com/google-maps-api@googlegroups.com /msg05299.html


"You could first create a map webpage and host it online.
It should be accessible from the internet so that it satisfies the API
Terms and Conditions of Use.

Then in your C++ application add a web browser control.
Customise the web browser control to make the GUI for your map page."


Alex
Re: Map support in UPP ? [message #25076 is a reply to message #25073] Tue, 09 February 2010 17:00 Go to previous messageGo to next message
chickenk is currently offline  chickenk
Messages: 169
Registered: May 2007
Location: Grenoble, France
Experienced Member
alex100 wrote on Tue, 09 February 2010 16:14


Ops... external renderer needed Sad



Well after digging a bit more, an online renderer is available (several in fact, but there's an official one) called Slippy Map: http://wiki.openstreetmap.org/wiki/Slippy_Map

And here's how to get static maps through HTTP GET requests: http://wiki.openstreetmap.org/wiki/Staticmaps

So the Google-like interface is available, though the URL syntax may differ, but it's not a big deal IMO.

Lionel
Re: Map support in UPP ? [message #25077 is a reply to message #25076] Tue, 09 February 2010 17:12 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Great!!

Alex
Re: Map support in UPP ? [message #25078 is a reply to message #25077] Tue, 09 February 2010 17:49 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello all

If someone needs advice on OpenStreetMap map editing (using available software) I have some experience.


Best regards
Iñaki
Re: Map support in UPP ? [message #25080 is a reply to message #25072] Tue, 09 February 2010 18:51 Go to previous messageGo to next message
chickenk is currently offline  chickenk
Messages: 169
Registered: May 2007
Location: Grenoble, France
Experienced Member
luzr wrote on Tue, 09 February 2010 16:10

Example uploaded.



Ouch, it does not compile at all under Linux ! GCC complains a lot about the TCore package when preparing Geom\Coords :

In file included from /home/liorry/upp/uppsrc/TCore/TCore.h:9,
                 from /home/liorry/upp/uppsrc/Geom/Coords/GeomCoords.h:5,
                 from /home/liorry/upp/uppsrc/Geom/Coords/util.cpp:1,
                 from /home/liorry/upp/out/Geom/Coords/GCC.Debug.Debug_full.Gui.Shared/$blitz.cpp:3:
/home/liorry/upp/uppsrc/TCore/template.h: In member function ‘T* Upp::PtrValue<T>::Get(const Upp::Value&)’:
/home/liorry/upp/uppsrc/TCore/template.h:120: error: ‘::IsNull’ has not been declared
/home/liorry/upp/uppsrc/TCore/template.h: In static member function ‘static T* Upp::PtrValue<T>::Extract(const Upp::Value&)’:
/home/liorry/upp/uppsrc/TCore/template.h:121: error: ‘::IsNull’ has not been declared
In file included from /home/liorry/upp/uppsrc/TCore/TCore.h:9,
                 from /home/liorry/upp/uppsrc/Geom/Coords/GeomCoords.h:5,
                 from /home/liorry/upp/uppsrc/Geom/Coords/util.cpp:1,
                 from /home/liorry/upp/out/Geom/Coords/GCC.Debug.Debug_full.Gui.Shared/$blitz.cpp:3:
/home/liorry/upp/uppsrc/TCore/template.h: At global scope:
/home/liorry/upp/uppsrc/TCore/template.h:407: error: invalid use of template-name ‘Upp::RefCon’ without an argument list
/home/liorry/upp/uppsrc/TCore/template.h:410: error: invalid use of template-name ‘Upp::RefPtr’ without an argument list
In file included from /home/liorry/upp/uppsrc/TCore/TCore.h:11,
                 from /home/liorry/upp/uppsrc/Geom/Coords/GeomCoords.h:5,
                 from /home/liorry/upp/uppsrc/Geom/Coords/util.cpp:1,
                 from /home/liorry/upp/out/Geom/Coords/GCC.Debug.Debug_full.Gui.Shared/$blitz.cpp:3:
/home/liorry/upp/uppsrc/TCore/setop.h:16: error: explicit qualification in declaration of ‘unsigned int Upp::GetHashValue(const Upp::SetOpCode&
	)’
Re: Map support in UPP ? [message #25081 is a reply to message #25080] Tue, 09 February 2010 19:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Fixed.
Re: Map support in UPP ? [message #25085 is a reply to message #25068] Tue, 09 February 2010 22:28 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
luzr wrote on Tue, 09 February 2010 15:50

Are there any?
Mirek



re free map provider

The NASA WorldWind project has a considerable amount of map images that are free and no copyright restrictions for Blue Marble, Sat7, USGS Topo and Digital, etc. These are used by Google Earth, MS Virtual Earth and many others.

http://worldwind.arc.nasa.gov/java/

I clipped, merged and tiled the FAA Sectional and TAC Charts and have served them and have them available for download from my website. They are free for non-commercial purposes.
http://www.nlneilson.com/sectionals.html

I use the NASA WWJ (Java) for my display and porting my apps that interact with that from Java to C++ using upp.
Re: Map support in UPP ? [message #27583 is a reply to message #25085] Sat, 24 July 2010 10:03 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
hi all,

Can not see the whole source code of the GoogleMaps example Sad

Please, could some one provide me the whole source code?


Thanks...

Alex

PS: this is the last line i can see:

String cd = ToCharset(CHARSET_DEFAULT, "%c%ERROR: Invalid UTF-8 sequence: "`,` CHARSET`_UTF8`)
Re: Map support in UPP ? [message #27595 is a reply to message #27583] Sun, 25 July 2010 09:33 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
alex100 wrote on Sat, 24 July 2010 04:03

hi all,

Can not see the whole source code of the GoogleMaps example Sad


It is in "examples". Not sure what you mean? Where are you trying to see it?

Mirek
Re: Map support in UPP ? [message #27620 is a reply to message #27595] Mon, 26 July 2010 15:15 Go to previous message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
ok... ok...

I was trying to see it on the upp web page but not i see that it is also present on the NEW versions of Upp. I am using an old version.
Ok, it is solved now.

Thank you

Alex
Previous Topic: Persistent "tips"
Next Topic: Wider scrollbars
Goto Forum:
  


Current Time: Thu Apr 18 20:05:33 CEST 2024

Total time taken to generate the page: 0.01399 seconds