Drawing on Google Maps API. possible? - Java for Android App Development

Another reason to love XDA - new forums for developing Android Apps.
I have an idea for an App, that would include loading the Google Maps API on the screen. After the map loads, I would like to draw color lines on each street depending on certain conditions. Is this even possible to draw lines for each street? Or is there another way of doing so?

Related

Developing Google map API

Hi every one,
I'm trying to add a Google map in my app that I'm working on,
I found a sample app but it's just receive an image for the current position that I'm getting it from the GPS radio and send it in an URL to Google map web serves then show it in an ImageBox,
but my need in my app is a map that I can move it by my finger very easy like the one inside the officially Google map app or in some of the site using there API you can move it by the mouse .
so I searched about this topic to find any some samples or tutorials but no luck,,, any helps please ?
I don't know if JavaScript is the solution or not ?? if yes, any idea how I can write a JavaScript code inside C# class, as I never worked with JavaScript before?
Thanks
Whilst not 100% relevant but it should help, there's a video on msdn about how to integrate virtual earth maps into a picturebox
http://msdn.microsoft.com/en-us/netframework/dd920289.aspx
I'm guessing the methods are pretty similar but you just use the google maps api.
Let me know if it helps because I'm thinking about writing an app which uses google maps for a visual golf gps rangefinder.
Yes I watched that video before and I tried the app it's works fine,
but for some resigns I need to use Google map and the visual earth it's doesn't support some country maps unlike google .
but I have a sample code written using static Google map API which is just retrieve the image you request by using the GPS position BUT I need the map to be interactive with the user so he can move it around with out depending on the GPS location

Custom Navigator app questions

Here's a quick background on my situation. I'm a college student and
for my thesis project I've decided to develop a "campus navigator" app
to assist incoming students in getting acquainted with the campus.
This is a year long project so at this point I'm partially
troubleshooting and partially trying to find out if my ideas are going
to run me into walls later down the road.
So as not to have an overwhelmingly long post, I'll just ask about my
current issues for now. The app opens up and allows the user to select
"Map" or "Navigate". I started working with map first because it
should be significantly simpler.
Current State:
The following currently works: hitting the map button displays a .png
of my campus's map (located at (couldn't post the link, so go to brockport.edu and search "campus map" for an image of the map)).
I've cropped the picture to only show the numbered buildings (i.e. the
oval track at the bottom, erie canal along the top, and blank spaces
on left/right near streets are all removed). The resulting image is
923x630.
Using the multi-touch pan/zoom code from Hello, Android! (3rd Edition)
(source code folder Touchv2 available at book's website), the map
display page allows the user to pinch zoom and pan the image. Here's
my first issue. With this implementation, the user is able to pan the
picture out of the screen or zoom out until it only takes up a pixel
or two. Is there any better implementation that will not allow the
user to pan beyond the borders of the image or zoom out past the image
size?
This feeds into my next issue, the "Where I want to be" part. Ideally,
I'd like the map display to use a location manager, and upon location
change, draw a circle where the user is standing. As far as projecting
latitude/longitude to pixel coordinates on the campus.png, that's just
math and I can figure that part out. My question is, since I'm using
an ImageView to put the png in, how can I draw on this? I've been
searching around all day and it appears that Canvas would be the ideal
way, since you can call drawCircle(x, y, radius, paint). However, I
was unable to find a way to correlate an ImageView to a Canvas and
back. On top of this, I need it to base these draws solely on
the .png's pixel coordinates, not the current display (since the image
may be panned or zoomed somewhere that would affect this).
I know it would be simple to just use Google Maps to implement this,
but if possible I'd strongly prefer to use the campus map, as it
clearly depicts all the walkways and buildings on the campus.
Any suggestions/help would be greatly appreciated. I just wanted to
ask early on so I don't make a fatal mistake and have to redesign it a
month before it's due. If you want to see any of my code, just let me
know.
-Mikey
anyone have any ideas? My thesis director is breathing down my neck to make steady progress, but I'm not confident in which direction to continue.

Google Maps 5.0 API?

I thought for sure this would have been asked; yet after searching for an hour, I've found nothing.
With the new Google Maps 5.0 out, allowing compass-rotation (showing the map based on your current heading) I wondered if there is a new API available to take advantage of these features?
I updated maps in the SDK but don't see anything new. How would one go about exposing these new v5-specific features in their own app?
Thank you in advance,
RKM
And why do you think you can use features from another apps in your own app?
And why do you think you can use features from another apps in your own app?
Click to expand...
Click to collapse
I'm sorry if my post came across as if I expect to use features from other apps in my own app. That was not my intention. My intention was simply to ask a very simple question, that is..
Google, owning the Android OS, offers the API for "Maps". This API currently supplies the ability to render maps. Prior to v5, the rendering looked identical to what Google exposed to developers.
Google has updated their turnkey Maps app. As a result, the rendering (and the very foundation, now that it consumes vector data rather than tiles alone) has changed.
My *question* was simply whether this is passed along to the developer in some way, or whether the developer is limited to using the older tile-only infrastructure that also lacks auto-orientation.
If the answer is that the developer is limited, I'm fine with the answer. I certainly didn't mean to suggest that I should be allowed to cannibalize features from other's app, but merely was referring to what appeared to be a fundamental change in their Maps app, that I wondered whether it might pass along in their API, being that LBS/Maps is pivotal in the Android as a mobile development platform.
Ahh, sorry, now I know what did you mean
Google Maps doesn't use Maps API - these things are totally unrelated with each other. So answer is: no, you can't use vector maps in Maps API. Maybe someday Google will update Maps API as well.
Ah, okay. Although it's not the answer I was hoping for, at least I can put an end to my quest!
Thank you!

[MAPS] Custom map data with googles maps api

hello map experts.
has anybody ever tried to use googles maps to display custom maps (eg from topographic raster map data)? i'd basically want to use their display engine but supply my own maps.
obviously the street data is vectorized since a while, but they are still downloading and displaying raster tiles when sat images or terrain is used. so there should be a way to feed my own tiles.
any "official" way to do it? or maybe a fancy replacement for the method they use to download the tiles? or is my only chance a transparent http proxy that redirects their tile-requesting urls secretly to my own data?
any ideas on this topic?
thanks,
joe.

Offline Maps?

I want to use my device for offline maps, i think it would be the perfect device for that considering readability outdoors. I've had no success with google maps as they appear to only offer offline functionality for android 2.2 and up in version 6.9+, nor can i find a newish version that would run on the nook anyways. I was hoping someone else has found a solution for this be it with google maps or an alternative. Preferably with an ability to accept lat/long coordinates to find places.
Thanks a lot, i appreciate your time to read this and any input you may give the thread.
This would be a source of USGS topographical maps in PDF form: https://store.usgs.gov/
Unfortunately, the website seems borked.
There was a thread on GPS and Nooks.
Best bet is to interface it directly at 3.3V to ttyS1 (UART2).
You'd still need an app to deal with this all.
There's OruxMaps, it works with both online and offline maps.
to access the go-to-point feature, you need to to customize the interface:
Setting->user interface->buttons->buttons bar-> now you scroll that thing in the middle until you find an icon that looks like a marker over a line of dots and you put it in one of the side menus, now you have a go-to button.
on the same occasion you can get rid of all the GPS related buttons.

Categories

Resources