OpenLayers 4 webmapcontext - openlayers-3

In one of my projects i want to use OL-4.6.5 instead of OL-2. But one key feature that we are using is the OpelLayers.Format.WMC().
Is this functionallity available in OL-4.6.5.
Regards
Magnus

It is not, and it probably will never be, but you should be able to use JSONIX with ogc-schemas for this.

Related

how to display a list of report-bots that are available to me

I used to use "iter_dialogs" to get a list of available chats. But this method has stopped working. Can you suggest an alternative? And is it possible to get a list of report-bots to write to them later? I will be very glad of any help.
iter_dialogs() doesn't work anymore, as it has been replaced by get_dialogs(). See Pyrogram's Release Notes for v2:
Iter_ methods have been removed:* This means there is now only one way of iterating through items by using the respective get_* methods which are all turned into generators. Some of the methods have been renamed as well:
iter_history becomes get_chat_history().
iter_chat_members becomes get_chat_members().
iter_dialogs becomes get_dialogs().
iter_profile_photos becomes get_chat_photos().
As for your second question about report bots, I have no idea what you're talking about there. You might want to edit your question to add more detail.

Google Slides API: replaceAllLinks?

In my implementation, I go through a loop to duplicate a slide and then update the text and images of each new slide using ReplaceAllText and ReplaceAllImages. I can do that in one batchUpdate. I wish I could do the same and "ReplaceAllLinks" but could not find anything to do that. Any ideas ?
You want to replace all links in a Google Slides using Slides API.
If my understanding is correct, how about this answer? Please think of this as just one of several possible answers.
Issue and workaround:
Unfortunately, in the current stage, there is no methods for directly achieving "ReplaceAllLinks". So it is required to use a workaround. In this answer, I would like to propose the following workaround.
Retrieve the object IDs you want to replace the link using the method of presentations.get.
Replace the links of the retrieved object IDs using updateTextStyle and updateShapeProperties of the method of presentations.batchUpdate.
In this case, 2 API calls are required.
References:
UpdateTextStyleRequest
UpdateShapePropertiesRequest
If I misunderstood your question and this was not the direction you want, I apologize.

Can I adapt from XMLEventWriter to XMLStreamWriter?

In order to support a StAXResult as input, I'd like to be able to adapt from XMLEventWriter to XMLStreamWriter. Its possible to go in the other direction via XMLOutputFactory2.createXMLEventWriter(XMLStreamWriter).
There's a similar asymmetry for readers as XMLInputFactory only has a method to adapt from XMLStreamReader to XMLEventReader.
Is there a way to do this?
NB: My code currently uses an XMLStreamWriter internally so it would be trivial to support an XMLStreamWriter. To support XMLEventWriter I either need to adapt the writer or change all the internal code to use XMLEventWriter (given that I can adapt from XMLStreamWriter to XMLEventWriter).
To answer my own question, you can use XMLEventStreamWriter from stax-utils.

how to change url in mvc Framework

i use MVC and i want to change my url!I want to put my product's title in url.
look at this one
domain.com/buy/read/51
and i want something like this
domain.com/buy/read/some_text.
what is the best Optimal Solution???
domain.com/controllers/function/parameter
51 is parameter,i cannot remove it from url.can i?
after above problem,i decide to make a url like this
domain.com/buy/read/51/some_text
and attempt to change it with(by htaccess)
domain.com/buy/some_text
but i couldnot.
please help me.i spend 3 days with this problem.
It's depend of your framework (even it's your own). Usually, you can create a Route which match with your constraints.
Sorry if i can't help more, but i need more informations
Bye
i declared this codes in Bootstrap.what's your opinion??
if(isset($url[0]) && $url[0]=='buy'){
require 'controllers/buy.php';
$controller=new buy();
$controller->Read($url[1]);
return FALSE;
}

Point of extension - Use case

Suppose I have a use case buy book, and the main flow is the following:
1- The user types the book code that he wants to buy
2- The system replies that there's enough stock of the requested book
3- The user confirm
Very simple.
Now suppose I want to give the option to the user to also do another thing between 2 and 3. How should I say it? I guess it's an extension to this use case, but I'm not sure where it's the point of extension.
As far as I know, if I choose, say, point of extension in 3, then the user has the opportunity to do 3 or do all the extension but not 3. The same behaviour of alternative flows.
But what I want is different. I want some "2.5" or nothing... do it or do nothing instead; not another thing.
I'm sorry for the vague question.
One option is the format recommended in Alistair Cockburn's Writing Effective Use Cases:
2a- User wants to do another thing:
2a1- The user does another thing
2a2- The system responds in some way, returns to step 3
Step 2a occurs after step 2 and before step 3. If the UC ends at step 2a2 then simply replace 'returns to step 3' with 'Use Case ends' or similar.
hth.
The problem here is the difference between the use case model in UML and use case descriptions. Extensions point is a concept from UML used to decouple extended and extending use cases. If you want adhere to this, you have to define the position of branching and returning back yourself, because UML says nothing about use case descriptions. I am personally as well as sfinnie a fan of Alistair Cockburns's approach to use cases, however it does not correspond well with the UML standard. There is yet another way, proposed by Bittner (Use case modeling book), who proposes to split the scenario into subflows with headlines.
I think what you actually want is an alternate path. An alternate path references a step in the main or in a different alternate path. I usually make that reference the Start step in the alternate. Then the End step is either a reference to where it returns to or an indication the path stops.

Resources