Comments (13)
hmmm. I'll aim to check that out tomorrow. Could you check to see if any calls went out through the network inspection in chrome?
from gwt-maps-v3-api.
Just have a quick check and the result there is no DirectionsService.Route call has been made in network inspection. Hope this help
from gwt-maps-v3-api.
I'm testing
from gwt-maps-v3-api.
Just look into that a bit as well
It seem to stuck at in BrowserChannelServer
reactToMessages function
MessageType messageType = Message.readMessageType(
getStreamFromOtherSide());
I am not sure how it that was link to the api . But hope this can help
from gwt-maps-v3-api.
I've got a configuration working. More parameters are needed.
from gwt-maps-v3-api.
Going to push up example in a minute
from gwt-maps-v3-api.
I've got this working...
private void drawDirectionsWithMidPoint() {
DirectionsRendererOptions options = DirectionsRendererOptions.newInstance();
final DirectionsRenderer directionsDisplay = DirectionsRenderer.newInstance(options);
directionsDisplay.setMap(mapWidget);
String origin = "Arlington, WA";
String destination = "Seattle, WA";
DirectionsRequest request = DirectionsRequest.newInstance();
request.setOrigin(origin);
request.setDestination(destination);
request.setTravelMode(TravelMode.DRIVING);
request.setOptimizeWaypoints(true);
LatLng stopOverWayPoint = LatLng.newInstance(47.8587, -121.9697);
DirectionsWaypoint waypoint = DirectionsWaypoint.newInstance();
waypoint.setStopOver(false);
waypoint.setLocation(stopOverWayPoint);
JsArray<DirectionsWaypoint> waypoints = JsArray.createArray().cast();
waypoints.push(waypoint);
request.setWaypoints(waypoints);
DirectionsService o = DirectionsService.newInstance();
o.route(request, new DirectionsResultHandler() {
public void onCallback(DirectionsResult result, DirectionsStatus status) {
if (status == DirectionsStatus.OK) {
directionsDisplay.setDirections(result);
getDistance();
} else if (status == DirectionsStatus.INVALID_REQUEST) {
} else if (status == DirectionsStatus.MAX_WAYPOINTS_EXCEEDED) {
} else if (status == DirectionsStatus.NOT_FOUND) {
} else if (status == DirectionsStatus.OVER_QUERY_LIMIT) {
} else if (status == DirectionsStatus.REQUEST_DENIED) {
} else if (status == DirectionsStatus.UNKNOWN_ERROR) {
} else if (status == DirectionsStatus.ZERO_RESULTS) {
}
}
});
}
from gwt-maps-v3-api.
I have it working. I pushed new example code and modified a small bug for _gwt_object that came up.
from gwt-maps-v3-api.
Demo up with the fix.
https://plus.google.com/111739836936169749229/posts/W69xKGXTCzt
from gwt-maps-v3-api.
Just update from the master branch. Work like magic! Thank you very much.
Do you mind to tell me what has went wrong if possible? Just try to understand the api a bit more
from gwt-maps-v3-api.
Good question :) I think the stepOver or other parameter needed to be set. I didn't stop to confirm which other parameter it was. But I also noticed a _gwt_Object during debugging which only happens in dev mode come up and it could have been that too.
from gwt-maps-v3-api.
Yeah i put the add wa ypoint sample code you uploaded with the old jar file and it did not work :( So what i have done is to get the source code from the master and reference to the source and it works. Yayyy
I had a look into what have been changed in your direction branch but could figure what is the different.
from gwt-maps-v3-api.
Good job. Oops, yeah, I have to get the jar distribution setup, thats on the todo list. Next weekend I should have that done.
from gwt-maps-v3-api.
Related Issues (20)
- problems using set and get key-value pair of MVCObject HOT 1
- Error when hitting enter in Textbox in form which uses Autocomplete HOT 1
- Navigation controls broken in IE
- MapTypeStyler does not support color and weight options
- AutoComplete component restrictions
- place result with pagination search retuns only 60 results
- Invisible maps on Chrome HOT 7
- DirectionSevice
- Google Fusion Table Styling in GWT
- Google maps API access from China HOT 7
- Remove the sensor parameter HOT 8
- PlaceChangeMapEvent: All fields are undefined
- ```yaml HOT 1
- Loading Map without loadMapApi() HOT 5
- Google Map works on local host but doesn't work on web server HOT 2
- No API Keys HOT 3
- Error in AutoComplete
- Only suggestions , no autocomplete
- sdf.spatial.plot colors keep changing
- LatLng no more supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-maps-v3-api.