Google Maps API v3 KML layer from Geoserver doesn't show - maps

Trying to load KML from Geoserver 2.1.1 in Google Maps v3. Nothing shows up. Should this URL work (except with our actual domain)?
http://mydomain.org/geoserver/wms/kml?layers=parks_and_recreation:City_Parks_Locations
Tried a couple of different layers; same result. I see this response from the Google KmlOverlayService:
_xdc_._7hdyfu && _xdc_._7hdyfu( [1] )

I got it to work:
The correct URL:
http://myhost:8080/geoserver/myworkspace/wms/reflect?layers=myworkspace:mylayer&format=kml
(funny I can't find a document to show using "reflect" and "format=kml". Only got the knowledge by googling.)
And myhost:8080 must be accessible to google. Things like "localhost" doesn't work.

Got it to work using this URL.
http://mydomain.org/geoserver/wms/reflect?layers=parks_and_recreation:City_Parks_Locations&format=kml

Related

Mapping natively not working

i have 2 days trying to make native google maps to work. I followed all the instructions i found, nothing. I searched for 2 days if others had any problems, i followed their solution but still nothing.
Maps appear on the simulator but not at the telephone. I tried with a dialog nothing. I tried to a container to the main form nothing.
I also tried final MapContainer cnt=new MapContainer(new GoogleMapsProvider("my_api_key")); but still nothing. With this i couldn't see the maps neither to the simulator.
I have downloaded from git first and then from the extensions but still the same. Nothing shows up.
Google api console shows the requests every time i try to see the map, but no map on mobile. I also used with SHA1 and without. The same results.
I noticed that in BuildHints it automatically adds android.playService.maps=true, and when i tried to add the android.includeGPlayServices=true there is a build error, cannot be used together the error log says.
My codanameone plugin version is 3.5.8
Thanks in advance.
You need to have a google API key using this build hint:
android.xapplication=<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="YOUR_ANDROID_API_KEY"/>
ios.afterFinishLaunching=[GMSServices provideAPIKey:#"YOUR_IOS_API_KEY"];
You need to login to the google cloud API console and turn on map support for your application picking "native Android" and then "native iOS" then copy the key for each and replacing the strings YOUR_ANDROID_API_KEY and YOUR_IOS_API_KEY respectively.
Go to the Google developers console to check your credentials.
https://console.developers.google.com/apis/credentials
Be aware that you need to remove the key restriction to make the API key work with Codename One.

How to find which file is serving ads in my application?

Ok, somehow I am serving ads in my NodeJS / AngularJS application, but I haven't include this myself.
There's some package or included link sending ads to the client, but the ads are not visible, and the adserve url changes with every request. (The url that can be seen in the screenshot below)
How do I find out which place in my application serves these ads?
PS: I am sure this doesn't come from my local dev pc, my other collegues have this issue as well.
A quick trick may be to search for the url in every files of your repository. If you use a cdn to load your librairies, try to look inside also (you can do that directly in chrome dev tool with ctrl/cmd f in the sources tab).
Hope it will help !
The "adserver" in my project turns out to be a tracking / analytics beacon included by the Realtime.co framework.
Thankfully, the author responded to my email very quickly, and they also provide a beacon-free version of their framework. So problem solved :)

Google Maps in Cordova and ionic

Just started developing hybrid apps with the ionic framework, and ran into a little problem.
I am trying to embed a Google map, but can't wrap my head around a lille issue.
First, I downloaded and implemented the "Angular Google Maps" from
http://angular-ui.github.io/angular-google-maps/
Then I created a API key through the Google developer console.
Added my applications id, from the config.xml, to the allowed url's
Added the key as part of the config section:
uiGmapGoogleMapApiProvider.configure({
key: 'added the key here',
v: '3.20', //defaults to latest 3.X anyhow
libraries: 'weather,geometry,visualization'
});
Added uiGmapgoogle-maps as a module
Placed <ui-gmap-google-map center='map.center' zoom='map.zoom'></ui-gmap-google-map> where I wanted the map to be.
....and now the problem:
When I fire up the app in the Ripple emulator, the maps shows just fine, for a second, and then tells me that the page was unable to display a Google Maps element, and gives me an "InvalidKeyOrUnauthorizedURLMapError", but it is an periodic error, because somethimes it actually works, without throwing an error, but then I try it on a live device, and the screen is just blank.
It is pretty safe to say, that I forgot something, or doing something wrong, but thank you very much in advance.
[EDIT]Well, if I remove all the restrictions for the Google Maps API, it works in the Ripple emulator, so I can change the question to: What url am I supposed to specify as allowed, when it is a cordova app?
And what causes the empty map when executed on a real device?[/EDIT]

Advice Please! - Google Drive Realtime Playground

Some advice would be appreciated.
I am trying to install the Google drive Realtime playground onto the online Google App Engine. (as well as trying to get it working on my Localhost.
Once uploaded, it renders but all functionality is greyed out. Link to example: https://alpha-113.appspot.com
I have added the client id and app id as stated (within the readme) into the correct .js file and updated the app.yaml file to include the application name.
I am stumped.. Can anyone assist?
James
If you view the output in the Javascript console, you see that you have a number of errors in your javascript. It looks like the underlying problem is that your CLIENT_ID has invalid syntax. It should just be the number. You can't have "."'s in a value in javascript like that.

How to get a Google Streetview in pano mode?

I recently came across many sites showing a Google streetview in panoramic mode, like this one: http://jackiedu.com/aprg/list/mypropdet.aspx?sid=100081&pid=706831, in the right bottom you will see it.
How was that generated? Google? or by the website itself?
Thanks.
Javascript API for google maps has a panoramic mode. http://code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewPanorama

Resources